Closed millfort closed 6 months ago
Reviewed 1 of 2 files at r1, all commit messages. Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @millfort)
deadlock.go
line 207 at r1 (raw file):func releaseTimer(t *time.Timer) { if !t.Stop() { <-t.C
Would for range t.C {}
be cleaner here?
Here is the top out for alloc space of heap profile:
I haven't figured out how to optimize
callers
. But fortime.NewTimer
the change seemed to be quite simple. So I made it.This change is