docker-compose fix

pull/249/head
wangchuxiao 3 years ago
parent 8ee4ca0357
commit 85f5c59781

@ -40,9 +40,11 @@ func init() {
}
n += len(keys)
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 err != nil {
panic(err.Error())
if len(keys) > 0 {
err = db.DB.RDB.Del(context.Background(), keys...).Err()
if err != nil {
panic(err.Error())
}
}
if cursor == 0 {
break

Loading…
Cancel
Save