mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 06:13:10 +00:00
further tweak gate threshold weights
This commit is contained in:
parent
8408e700e2
commit
45e1233b05
@ -216,7 +216,7 @@ func (pg *peerGater) AcceptFrom(p peer.ID) AcceptStatus {
|
||||
|
||||
st := pg.getPeerStats(p)
|
||||
|
||||
total := st.deliver + 0.5*st.duplicate + st.ignore + 2*st.reject
|
||||
total := st.deliver + 0.25*st.duplicate + st.ignore + 4*st.reject
|
||||
if total == 0 {
|
||||
return AcceptAll
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user