format code

This commit is contained in:
crapStone 2024-04-27 23:38:49 +02:00 committed by crapStone
parent 687f06e107
commit 50221cf531
2 changed files with 5 additions and 4 deletions

View file

@ -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)