add comment about validationThrottled suerpseding ValidationIgnore

This commit is contained in:
vyzo 2020-04-28 18:54:01 +03:00
parent deee35d9b8
commit 63e7ba850c
1 changed files with 2 additions and 0 deletions

View File

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