mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-09-17 04:04:09 +02:00
invalidated filters just return nothing instead of erroring.
This commit is contained in:
@@ -18,7 +18,9 @@ func (rl *Relay) handleRequest(ctx context.Context, id string, eose *sync.WaitGr
|
|||||||
}
|
}
|
||||||
|
|
||||||
if filter.Limit < 0 {
|
if filter.Limit < 0 {
|
||||||
return errors.New("blocked: filter invalidated")
|
// this is a special situation through which the implementor signals to us that it doesn't want
|
||||||
|
// to event perform any queries whatsoever
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// then check if we'll reject this filter (we apply this after overwriting
|
// then check if we'll reject this filter (we apply this after overwriting
|
||||||
|
Reference in New Issue
Block a user