improve SimplePool authHandler, rename IncomingEvent to RelayEvent so we can use it there.

This commit is contained in:
fiatjaf
2024-09-19 12:28:42 -03:00
parent c07528eb42
commit 8327310d52
3 changed files with 31 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ func NewSystem(mods ...SystemModifier) *System {
}
sys.Pool = nostr.NewSimplePool(context.Background(),
nostr.WithEventMiddleware(sys.trackEventHints),
nostr.WithEventMiddleware(sys.TrackEventHints),
nostr.WithPenaltyBox(),
)