mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
run gosimple in gometalinter
This commit is contained in:
parent
286a51bcc0
commit
81974d30d6
13 changed files with 23 additions and 24 deletions
|
@ -31,7 +31,7 @@ func (t *Timer) Reset(deadline time.Time) {
|
|||
if !t.t.Stop() && !t.read {
|
||||
<-t.t.C
|
||||
}
|
||||
t.t.Reset(deadline.Sub(time.Now()))
|
||||
t.t.Reset(time.Until(deadline))
|
||||
|
||||
t.read = false
|
||||
t.deadline = deadline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue