Skip to content

Commit

Permalink
update cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadman97 committed Apr 30, 2024
1 parent 0bebc6d commit b711bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func main() {
})
}
if runtimeParsed == util.PublicGraph || runtimeParsed == util.All {
sessionCache, err := golang_lru.New[string, *model.Session](10000)
sessionCache, err := golang_lru.New[string, *model.Session](20000)
if err != nil {
log.Fatalf("error initializing lru cache: %v", err)
}
Expand Down Expand Up @@ -581,7 +581,7 @@ func main() {
log.Printf("runtime is: %v \n", runtimeParsed)
log.Println("process running....")
if runtimeParsed == util.Worker || runtimeParsed == util.All {
sessionCache, err := golang_lru.New[string, *model.Session](10000)
sessionCache, err := golang_lru.New[string, *model.Session](20000)
if err != nil {
log.Fatalf("error initializing lru cache: %v", err)
}
Expand Down

0 comments on commit b711bee

Please sign in to comment.