add labels to subscriptions for easier debugging.

This commit is contained in:
fiatjaf
2025-08-14 13:27:29 -03:00
parent 23e27da077
commit d3975679e4
4 changed files with 15 additions and 5 deletions

View File

@@ -106,7 +106,9 @@ var fetch = &cli.Command{
continue
}
for ie := range sys.Pool.FetchMany(ctx, relays, filter, nostr.SubscriptionOptions{}) {
for ie := range sys.Pool.FetchMany(ctx, relays, filter, nostr.SubscriptionOptions{
Label: "nak-fetch",
}) {
stdout(ie.Event)
}
}