Peer timer teardown
This commit is contained in:
parent
996c7c4d8a
commit
d73f960aab
7 changed files with 163 additions and 102 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue