mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-04 13:53:06 +00:00
add comment about validationThrottled suerpseding ValidationIgnore
This commit is contained in:
parent
deee35d9b8
commit
63e7ba850c
@ -384,6 +384,8 @@ func (v *validation) validateTopic(vals []*topicVal, src peer.ID, msg *Message)
|
||||
result = ValidationReject
|
||||
break
|
||||
case ValidationIgnore:
|
||||
// throttled validation has the same effect, but takes precedence over Ignore as it is not
|
||||
// known whether the throttled validator would have signaled rejection.
|
||||
if result != validationThrottled {
|
||||
result = ValidationIgnore
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user