Skip to content

Commit 578f3bf

Browse files
Werkovddiss
authored andcommitted
icyci: fix pollTimer reset duration
Likely works as-is due to some typing luck in go (Duration from Duration). Link: #13
1 parent b9be0f0 commit 578f3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icyci.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ func pollSource(retCh chan<- error, exitCh chan error, sourceDir string,
591591
goto err_out
592592

593593
case <-pollTimer.C:
594-
pollTimer.Reset(time.Second * time.Duration(pollInterval))
594+
pollTimer.Reset(pollInterval)
595595

596596
err = pollFetch(sourceDir, branch)
597597
if err != nil {

0 commit comments

Comments
 (0)