all repos — honk @ ccc6b5a9de02e7af2cda8749f6b76296bb48c448

my fork of honk

reduce the deliverator hysteresis to reduce clumping
Ted Unangst tedu@tedunangst.com
Mon, 29 Apr 2019 14:13:34 -0400
commit

ccc6b5a9de02e7af2cda8749f6b76296bb48c448

parent

785d9cec00c28561f6636f17f194b7e29584e1bf

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M deliverator.godeliverator.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) } }