mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
format code
This commit is contained in:
parent
687f06e107
commit
50221cf531
2 changed files with 5 additions and 4 deletions
|
@ -8,8 +8,10 @@ import (
|
|||
"github.com/hashicorp/golang-lru/v2/expirable"
|
||||
)
|
||||
|
||||
const lookupCacheValidity = 30 * time.Second
|
||||
const defaultPagesRepo = "pages"
|
||||
const (
|
||||
lookupCacheValidity = 30 * time.Second
|
||||
defaultPagesRepo = "pages"
|
||||
)
|
||||
|
||||
// TODO(#316): refactor to not use global variables
|
||||
var lookupCache *expirable.LRU[string, string] = expirable.NewLRU[string, string](4096, nil, lookupCacheValidity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue