summaryrefslogtreecommitdiffhomepage
path: root/src/timer.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-12-29 17:42:09 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-12-29 17:42:09 +0100
commitd73f960aab86b9a12b0b7d18aa80ce1d4f130695 (patch)
treeec4b6683c1c0b6b28a95b4bdb718dcc3faa0f222 /src/timer.go
parent996c7c4d8aa11a73718e49b520d16bbf0630a3df (diff)
Peer timer teardown
Diffstat (limited to 'src/timer.go')
-rw-r--r--src/timer.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/timer.go b/src/timer.go
index 3def253..f00ca49 100644
--- a/src/timer.go
+++ b/src/timer.go
@@ -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
}