nip-40 expiration manager.

This commit is contained in:
fiatjaf
2025-01-13 00:05:41 -03:00
parent e1de0432fe
commit d27f582a0b
5 changed files with 151 additions and 14 deletions

View File

@@ -106,6 +106,9 @@ func (rl *Relay) AddEvent(ctx context.Context, evt *nostr.Event) (skipBroadcast
for _, ons := range rl.OnEventSaved {
ons(ctx, evt)
}
// track event expiration if applicable
rl.expirationManager.trackEvent(evt)
}
return false, nil