Skip to content

Commit 7e9120c

Browse files
committed
feat(pool): add penalty box support to SimplePool initialization
Introduce PenaltyBox configuration to enhance connection management when initializing SimplePool. This will hopefully help with misbehaving import relays.
1 parent ff3a9cf commit 7e9120c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
var (
18-
pool = nostr.NewSimplePool(context.Background())
18+
pool = nostr.NewSimplePool(context.Background(), nostr.WithPenaltyBox())
1919
config = loadConfig()
2020
fs afero.Fs
2121
)

0 commit comments

Comments
 (0)