mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-04-27 07:17:58 +02:00
filter.Limit is zero by default, so we will short-circuit on negative limits.
This commit is contained in:
@@ -16,7 +16,7 @@ func (rl *Relay) handleRequest(ctx context.Context, id string, eose *sync.WaitGr
|
||||
ovw(ctx, &filter)
|
||||
}
|
||||
|
||||
if filter.Limit == 0 {
|
||||
if filter.Limit < 0 {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user