Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use time.NewTimer instead of time.After in Sleep
To fix a potential temporary goroutine leak; see the added comment. The leaked goroutine would eventually stop once the timer is fired, but until then, the goroutine could be unnecessarily left around.
- Loading branch information