reduce the deliverator hysteresis to reduce clumping
Ted Unangst tedu@tedunangst.com
Mon, 29 Apr 2019 14:13:34 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
deliverator.go
→
deliverator.go
@@ -115,7 +115,7 @@ case <-pokechan:
if !sleeper.Stop() { <-sleeper.C } - time.Sleep(1 * time.Minute) + time.Sleep(5 * time.Second) case <-sleeper.C: }@@ -150,7 +150,7 @@ } else if d.When.Before(nexttime) {
nexttime = d.When } } - dur := nexttime.Sub(now).Round(time.Second) + 1*time.Minute + dur := nexttime.Sub(now).Round(time.Second) + 5*time.Second sleeper.Reset(dur) } }