put a limit on some caches that may grow kinda large

This commit is contained in:
Ted Unangst 2019-11-11 18:30:40 -05:00
parent 46e6d99eda
commit 89aa0a821d
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

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