Skip to content

Commit

Permalink
cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 22, 2024
1 parent 73cdd37 commit 109ed9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/db/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ func syncCache() *freecache.Cache {
}
cacheOnce.Do(func() {
cacheSize := 32 * 1024 * 1024 // 32 MB
cache := freecache.NewCache(cacheSize)
cache = freecache.NewCache(cacheSize)
configureCache(cache)
})

return cache
}

func configureCache(fc *freecache.Cache) {

func configureCache(fc *freecache.Cache) *freecache.Cache {
return fc
}

0 comments on commit 109ed9b

Please sign in to comment.