Skip to content

Commit

Permalink
close janitor stop channel
Browse files Browse the repository at this point in the history
  • Loading branch information
da440dil committed Aug 6, 2019
1 parent 311b5f8 commit dfb2e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (j *janitor) Run(c *storage) {
}

func stopJanitor(gw *Gateway) {
gw.janitor.stop <- struct{}{}
close(gw.janitor.stop)
}

func runJanitor(s *storage, interval time.Duration) {
Expand Down

0 comments on commit dfb2e03

Please sign in to comment.