Просмотр исходного кода

remove all items from remapped sets since we cant backfill them anyway

stashes
Fusl 2 лет назад
Родитель
Сommit
29872a3458
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      main.go

+ 2
- 2
main.go Просмотреть файл

@@ -269,9 +269,9 @@ func (that *Offloader) Do() {
log.Printf("unable to scard %s: %s", key, err) log.Printf("unable to scard %s: %s", key, err)
continue continue
} }
if scard > watermarkHigh {
if scard > watermarkHigh || (k != q && scard > 0) {
spopLimit := scard - watermarkHigh spopLimit := scard - watermarkHigh
if spopLimit > batchSize {
if k != q || spopLimit > batchSize {
spopLimit = batchSize spopLimit = batchSize
} }
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute) ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)


Загрузка…
Отмена
Сохранить