Skip to content

Commit

Permalink
Cleanup ticker used in runGCInLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hughes committed Sep 7, 2017
1 parent 77b7783 commit 8dd8c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions value.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ func (vlog *valueLog) runGCInLoop(lc *y.Closer) {
}

tick := time.NewTicker(vlog.opt.ValueGCRunInterval)
defer tick.Stop()
for {
select {
case <-lc.HasBeenClosed():
Expand Down

0 comments on commit 8dd8c54

Please sign in to comment.