nip77: only fetch ids after sync if there are ids to fetch.
This commit is contained in:
@@ -161,7 +161,9 @@ func SyncEventsFromIDs(ctx context.Context, dir Direction) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(batch) > 0 {
|
||||||
for evt := range dir.From.QueryEvents(nostr.Filter{IDs: batch}) {
|
for evt := range dir.From.QueryEvents(nostr.Filter{IDs: batch}) {
|
||||||
dir.To.Publish(ctx, evt)
|
dir.To.Publish(ctx, evt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user