Peer timer teardown

This commit is contained in:
Mathias Hall-Andersen
2017-12-29 17:42:09 +01:00
parent 996c7c4d8a
commit d73f960aab
7 changed files with 163 additions and 102 deletions
-6
View File
@@ -43,12 +43,6 @@ func (t *Timer) Reset(dur time.Duration) {
t.Start(dur)
}
func (t *Timer) Push(dur time.Duration) {
if t.pending.Get() {
t.Reset(dur)
}
}
func (t *Timer) Wait() <-chan time.Time {
return t.timer.C
}