Skip to content

Commit f0c09c7

Browse files
committed
client/daemon: route liveness probing / run loop cleanup
1 parent 1726950 commit f0c09c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

client/doublezerod/internal/probing/worker.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,10 @@ func (w *probingWorker) Run(ctx context.Context) {
9595
}
9696
}()
9797

98-
// Reusable timer.
9998
timer := time.NewTimer(time.Hour)
100-
if !timer.Stop() {
101-
<-timer.C
102-
}
10399
defer timer.Stop()
104100

105101
var tc <-chan time.Time
106-
// IMPORTANT: pin the current wake channel; refresh it only after it fires.
107102
wakeCh := w.cfg.Scheduler.Wake()
108103

109104
reset := func(next time.Time) {

0 commit comments

Comments
 (0)