From 63e7ba850cfb92c13ab5586eb609069fc8743a2c Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 28 Apr 2020 18:54:01 +0300 Subject: [PATCH] add comment about validationThrottled suerpseding ValidationIgnore --- validation.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validation.go b/validation.go index f4fa2a1..480b83d 100644 --- a/validation.go +++ b/validation.go @@ -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 }