log filter expiry
Ted Unangst tedu@tedunangst.com
Sun, 03 Mar 2024 02:15:05 -0500
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
hfcs.go
→
hfcs.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) }