mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 12:53:09 +00:00
[validation] break not used correct - need return or give label, i choose return
This commit is contained in:
parent
fedb87bd57
commit
04e971fa0d
@ -382,7 +382,7 @@ func (v *validation) validateTopic(vals []*topicVal, src peer.ID, msg *Message)
|
||||
case ValidationAccept:
|
||||
case ValidationReject:
|
||||
result = ValidationReject
|
||||
break
|
||||
return result
|
||||
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user