rename option pool.WithQueryMiddleware() to pool.WithAuthorKindQueryMiddleware().

This commit is contained in:
fiatjaf
2025-01-03 00:12:33 -03:00
parent 668720f4bc
commit b33cfb19fa
2 changed files with 4 additions and 4 deletions

View File

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