increase tagged import

This commit is contained in:
Barry Deen
2024-10-08 12:39:39 -04:00
parent 748fdcbec5
commit b7f371ed38

View File

@@ -89,15 +89,10 @@ func importTaggedNotes() {
continue
}
for _, tag := range ev.Event.Tags.GetAll([]string{"p"}) {
if len(tag) < 2 {
continue
}
if tag[1] == nPubToPubkey(config.OwnerNpub) {
wdb.Publish(ctx, *ev.Event)
taggedImportedNotes++
}
}
log.Println("📦 imported", taggedImportedNotes, "tagged notes")
time.Sleep(5 * time.Second)
@@ -110,7 +105,6 @@ func importTaggedNotes() {
}
}
}
}
func subscribeInbox() {
ctx := context.Background()