Skip to content

Commit 09736de

Browse files
committed
fix: typo
1 parent 226ae80 commit 09736de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cache.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,12 @@ func NewDCache(
145145
}
146146
if inMemCache != nil {
147147
c.pubsub = c.conn.Subscribe(ctx, redisCacheInvalidateTopic)
148-
c.wg.Add(3)
148+
c.wg.Add(2)
149149
go c.aggregateSend()
150150
go c.listenKeyInvalidate()
151+
}
152+
if enableStats {
153+
c.wg.Add(1)
151154
go c.updateMetrics()
152155
}
153156
return c, nil

0 commit comments

Comments
 (0)