From 89aa0a821da708ce69cee608905e4e7e99a28fac Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 11 Nov 2019 18:30:40 -0500 Subject: [PATCH] put a limit on some caches that may grow kinda large --- activity.go | 2 +- fun.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activity.go b/activity.go index 7cf62ac..71b80d6 100644 --- a/activity.go +++ b/activity.go @@ -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 diff --git a/fun.go b/fun.go index 142dac0..b3ecf33 100644 --- a/fun.go +++ b/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