nak/b and nak/s user-agents.

This commit is contained in:
fiatjaf
2024-09-26 22:17:31 -03:00
parent d7c0ff2bb7
commit 2988c71ccb
4 changed files with 13 additions and 6 deletions

View File

@@ -18,6 +18,12 @@ import (
var sys = sdk.NewSystem()
func init() {
sys.Pool = nostr.NewSimplePool(context.Background(),
nostr.WithUserAgent("nak/b"),
)
}
const (
LINE_PROCESSING_ERROR = iota
)
@@ -123,6 +129,7 @@ func connectToAllRelays(
append(opts,
nostr.WithEventMiddleware(sys.TrackEventHints),
nostr.WithPenaltyBox(),
nostr.WithUserAgent("nak/s"),
)...,
)