We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ac1518 + 0640633 commit a3647f8Copy full SHA for a3647f8
1 file changed
cache.go
@@ -1074,7 +1074,6 @@ type janitor struct {
1074
}
1075
1076
func (j *janitor) Run(c *cache) {
1077
- j.stop = make(chan bool)
1078
ticker := time.NewTicker(j.Interval)
1079
for {
1080
select {
@@ -1094,6 +1093,7 @@ func stopJanitor(c *Cache) {
1094
1093
func runJanitor(c *cache, ci time.Duration) {
1095
j := &janitor{
1096
Interval: ci,
+ stop: make(chan bool),
1097
1098
c.janitor = j
1099
go j.Run(c)
0 commit comments