put a limit on some caches that may grow kinda large
This commit is contained in:
parent
46e6d99eda
commit
89aa0a821d
2 changed files with 2 additions and 2 deletions
|
@ -1158,7 +1158,7 @@ var oldjonks = cache.New(cache.Options{Filler: func(xid string) ([]byte, bool) {
|
|||
j["@context"] = itiswhatitis
|
||||
|
||||
return j.ToBytes(), true
|
||||
}})
|
||||
}, Limit: 128})
|
||||
|
||||
func gimmejonk(xid string) ([]byte, bool) {
|
||||
var j []byte
|
||||
|
|
2
fun.go
2
fun.go
|
@ -603,7 +603,7 @@ var zaggies = cache.New(cache.Options{Filler: func(keyname string) (*rsa.PublicK
|
|||
return key, true
|
||||
}
|
||||
return nil, true
|
||||
}})
|
||||
}, Limit: 512})
|
||||
|
||||
func zaggy(keyname string) *rsa.PublicKey {
|
||||
var key *rsa.PublicKey
|
||||
|
|
Loading…
Reference in a new issue