Skip to content

Commit

Permalink
Fixed SegmentCache init error (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan961 authored May 7, 2024
1 parent 4df3758 commit aab3209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/segment_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var segmentCacheSingleton *SegmentCache
var segmentCacheInitOnce sync.Once

func getSegmentCache() *SegmentCache {
sessionCacheInitOnce.Do(func() {
segmentCacheInitOnce.Do(func() {
segmentCacheSingleton = &SegmentCache{
cacheByKey: make(map[string]*model.Segment),
mutex: &sync.Mutex{},
Expand Down

0 comments on commit aab3209

Please sign in to comment.