From 938dd09c58fd0c5634c15f50151d74161e9f6fc9 Mon Sep 17 00:00:00 2001 From: pippellia-btc Date: Mon, 15 Sep 2025 11:23:03 +0200 Subject: [PATCH] decreased expiration --- pkg/pipe/recorder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pipe/recorder.go b/pkg/pipe/recorder.go index 1d26b35..154d62e 100644 --- a/pkg/pipe/recorder.go +++ b/pkg/pipe/recorder.go @@ -84,7 +84,7 @@ func recordEvent(db redb.RedisDB, event *nostr.Event) error { pipe := db.Client.TxPipeline() pipe.HIncrBy(ctx, stats(today), kind(event.Kind), 1) pipe.PFAdd(ctx, activePubkeys(today), event.PubKey) - pipe.Expire(ctx, activePubkeys(today), 30*expiration) + pipe.Expire(ctx, activePubkeys(today), expiration) if _, err := pipe.Exec(ctx); err != nil { return fmt.Errorf("failed to record event: pipeline failed: %w", err)