put a limit on some caches that may grow kinda large
This commit is contained in:
parent
46e6d99eda
commit
89aa0a821d
|
@ -1158,7 +1158,7 @@ var oldjonks = cache.New(cache.Options{Filler: func(xid string) ([]byte, bool) {
|
||||||
j["@context"] = itiswhatitis
|
j["@context"] = itiswhatitis
|
||||||
|
|
||||||
return j.ToBytes(), true
|
return j.ToBytes(), true
|
||||||
}})
|
}, Limit: 128})
|
||||||
|
|
||||||
func gimmejonk(xid string) ([]byte, bool) {
|
func gimmejonk(xid string) ([]byte, bool) {
|
||||||
var j []byte
|
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 key, true
|
||||||
}
|
}
|
||||||
return nil, true
|
return nil, true
|
||||||
}})
|
}, Limit: 512})
|
||||||
|
|
||||||
func zaggy(keyname string) *rsa.PublicKey {
|
func zaggy(keyname string) *rsa.PublicKey {
|
||||||
var key *rsa.PublicKey
|
var key *rsa.PublicKey
|
||||||
|
|
Loading…
Reference in New Issue