filter.Limit is zero by default, so we will short-circuit on negative limits.

This commit is contained in:
fiatjaf
2023-11-13 10:55:17 -03:00
parent ecb4fc66f8
commit 1abeab4851

View File

@@ -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
}