From 991d3d0410435011654beddf53598890394c7661 Mon Sep 17 00:00:00 2001 From: Barry Deen Date: Thu, 26 Sep 2024 19:14:34 -0400 Subject: [PATCH] only get notes since 5 minuts ago when subscribing to inbox --- import.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import.go b/import.go index bbf185d..823f39b 100644 --- a/import.go +++ b/import.go @@ -115,10 +115,12 @@ func importTaggedNotes() { func subscribeInbox() { ctx := context.Background() wdb := eventstore.RelayWrapper{Store: &inboxDB} + startTime := nostr.Timestamp(time.Now().Add(-time.Minute * 5).Unix()) filters := []nostr.Filter{{ Tags: nostr.TagMap{ "p": {nPubToPubkey(config.OwnerNpub)}, }, + Since: &startTime, }} log.Println("📢 subscribing to inbox")