mirror of
https://github.com/aljazceru/haven.git
synced 2026-01-30 02:34:22 +01:00
Merge pull request #17 from bitvora/dev-fixLazySubscription
only get notes since 5 minuts ago when subscribing to inbox
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user