all repos — honk @ 9cb8e19e6b2c560f5f7f0811b772c0d8f4c2f5d3

my fork of honk

log filter expiry
Ted Unangst tedu@tedunangst.com
Sun, 03 Mar 2024 02:15:05 -0500
commit

9cb8e19e6b2c560f5f7f0811b772c0d8f4c2f5d3

parent

62434f814a1649adcbee6960a81d9d9a5962896d

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M hfcs.gohfcs.go

@@ -114,6 +114,7 @@ if filt.Expiration.Before(now) {

continue } if expflush.IsZero() || filt.Expiration.Before(expflush) { + dlog.Printf("filter expired: %s", filt.Name) expflush = filt.Expiration } }

@@ -184,6 +185,7 @@ return filtmap, true

} func filtcacheclear(userid UserID, dur time.Duration) { + dlog.Printf("clearing filters in %s", dur.String()) time.Sleep(dur + time.Second) filtInvalidator.Clear(userid) }