Skip to content

Commit 0988e6c

Browse files
committed
fix: CheckInterval duration being doubled
- closes #19 Signed-off-by: Liam Stanley <[email protected]>
1 parent ccabcff commit 0988e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func worker(ctx context.Context, wg *sync.WaitGroup, addr string) {
2323
var errDelay time.Duration
2424

2525
for {
26-
errDelay = (30*time.Second)*time.Duration(errCount) + conf.CheckInterval
26+
errDelay = (30 * time.Second) * time.Duration(errCount)
2727
if errDelay > conf.MaxCheckInterval {
2828
errDelay = conf.MaxCheckInterval
2929
}

0 commit comments

Comments
 (0)