Support expiring events (NIP-40) #2

Open
opened 2024-05-02 09:33:26 +12:00 by mikedilger · 0 comments
mikedilger commented 2024-05-02 09:33:26 +12:00 (Migrated from github.com)

Add a new LMDB index (expires_at + id) -> () and do this

  • Load the first one, and start a timer that fires when the time arrives
  • When the time arrives, remove the event
  • When new events come in, add them to this index and if they are first, restart the timer
Add a new LMDB index `(expires_at + id) -> ()` and do this - Load the first one, and start a timer that fires when the time arrives - When the time arrives, remove the event - When new events come in, add them to this index and if they are first, restart the timer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/pocket#2
No description provided.