docker-compose fix

This commit is contained in:
wangchuxiao 2022-07-20 12:08:58 +08:00
parent 8ee4ca0357
commit 85f5c59781

@ -40,9 +40,11 @@ func init() {
} }
n += len(keys) n += len(keys)
fmt.Printf("\n %s key found %d keys: %v, current cursor %d\n", key, n, keys, cursor) fmt.Printf("\n %s key found %d keys: %v, current cursor %d\n", key, n, keys, cursor)
err = db.DB.RDB.Del(context.Background(), keys...).Err() if len(keys) > 0 {
if err != nil { err = db.DB.RDB.Del(context.Background(), keys...).Err()
panic(err.Error()) if err != nil {
panic(err.Error())
}
} }
if cursor == 0 { if cursor == 0 {
break break