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
|
result = ValidationReject
|
||||||
break
|
break
|
||||||
case ValidationIgnore:
|
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 {
|
if result != validationThrottled {
|
||||||
result = ValidationIgnore
|
result = ValidationIgnore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue