Skip to content

Commit 77a61ac

Browse files
committed
save
1 parent 55f9d72 commit 77a61ac

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

internal/verifier/check.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,6 @@ func (verifier *Verifier) Work(ctx context.Context, workerNum int, wg *sync.Wait
387387
task, err := verifier.FindNextVerifyTaskAndUpdate()
388388
if errors.Is(err, mongo.ErrNoDocuments) {
389389
duration := verifier.workerSleepDelayMillis * time.Millisecond
390-
391-
verifier.logger.Debug().
392-
Int("workerNum", workerNum).
393-
Stringer("duration", duration).
394-
Msg("No tasks found. Sleeping.")
395-
396390
time.Sleep(duration)
397391
continue
398392
} else if err != nil {

internal/verifier/summary.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ func (verifier *Verifier) printWorkerStatus(builder *strings.Builder) {
463463
)
464464
}
465465

466-
builder.WriteString(fmt.Sprintf("\nActive worker threads (%d):\n", activeThreadCount))
466+
builder.WriteString(fmt.Sprintf(
467+
"\nActive worker threads (%d of %d):\n",
468+
activeThreadCount,
469+
verifier.numWorkers,
470+
))
471+
467472
table.Render()
468473
}

0 commit comments

Comments
 (0)