Skip to content

Commit 81f6235

Browse files
committed
Fix nil pointer in Snapshot Store.
1 parent 6c24aaa commit 81f6235

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testutils/notifierstore/api.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ func newSnapStore() *snapStore {
149149

150150
func newSnapStoreWithLogger(l log.Logger) *snapStore {
151151
return &snapStore{
152-
data: freecache.NewCache(2 << 30),
153-
log: l,
152+
data: freecache.NewCache(2 << 30),
153+
count: new(uint64),
154+
log: l,
154155
}
155156
}
156157

0 commit comments

Comments
 (0)