Skip to content

Commit

Permalink
Increase the appfs cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Dec 9, 2024
1 parent 5bd44f9 commit 2d89420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/appfs/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var initCacheOnce sync.Once
// using the swift backend as file server.
func NewSwiftFileServer(conn *swift.Connection, appsType consts.AppType) FileServer {
initCacheOnce.Do(func() {
c, err := lru.New[string, cacheEntry](128)
c, err := lru.New[string, cacheEntry](1024)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 2d89420

Please sign in to comment.