why were we recreating the pool?

This commit is contained in:
fiatjaf
2026-04-18 11:13:08 -03:00
parent 07b791e90a
commit d3f4548dbd
2 changed files with 5 additions and 16 deletions

View File

@@ -7,8 +7,6 @@ import (
"fmt"
"iter"
"math/rand"
"net/http"
"net/textproto"
"net/url"
"os"
"os/exec"
@@ -200,13 +198,6 @@ func connectToAllRelays(
}
}
opts.EventMiddleware = sys.TrackEventHints
opts.PenaltyBox = true
opts.RelayOptions.RequestHeader = http.Header{
textproto.CanonicalMIMEHeaderKey("user-agent"): {"nak/s"},
}
sys.Pool = nostr.NewPool(opts)
relays := make([]*nostr.Relay, 0, len(relayUrls))
if supportsDynamicMultilineMagic() {