mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 15:23:08 +00:00
count all rejections by default
This commit is contained in:
parent
7912408642
commit
6dbdaed793
@ -227,15 +227,7 @@ func (pg *peerGater) RejectMessage(msg *Message, reason string) {
|
|||||||
st := pg.getPeerStats(msg.ReceivedFrom)
|
st := pg.getPeerStats(msg.ReceivedFrom)
|
||||||
st.ignore++
|
st.ignore++
|
||||||
|
|
||||||
case rejectMissingSignature:
|
default:
|
||||||
fallthrough
|
|
||||||
case rejectUnexpectedSignature:
|
|
||||||
fallthrough
|
|
||||||
case rejectUnexpectedAuthInfo:
|
|
||||||
fallthrough
|
|
||||||
case rejectInvalidSignature:
|
|
||||||
fallthrough
|
|
||||||
case rejectValidationFailed:
|
|
||||||
st := pg.getPeerStats(msg.ReceivedFrom)
|
st := pg.getPeerStats(msg.ReceivedFrom)
|
||||||
st.reject++
|
st.reject++
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user