prysmaticlabs / prysm

Poorly chosen receiver name SCC-ST1006
Anti-pattern
Minor
10 days ago3 years old
receiver name should not be an underscore, omit the name if it is unused
405}
406
407// InterceptUpgraded .
408func (_ *TestP2P) InterceptUpgraded(network.Conn) (allow bool, reason control.DisconnectReason) {409	return true, 0
410}
receiver name should not be an underscore, omit the name if it is unused
400}
401
402// InterceptSecured .
403func (_ *TestP2P) InterceptSecured(network.Direction, peer.ID, network.ConnMultiaddrs) (allow bool) {404	return true
405}
406
receiver name should not be an underscore, omit the name if it is unused
395}
396
397// InterceptAccept .
398func (_ *TestP2P) InterceptAccept(_ network.ConnMultiaddrs) (allow bool) {399	return true
400}
401
receiver name should not be an underscore, omit the name if it is unused
390}
391
392// InterceptAddrDial .
393func (_ *TestP2P) InterceptAddrDial(peer.ID, multiaddr.Multiaddr) (allow bool) {394	return true
395}
396
receiver name should not be an underscore, omit the name if it is unused
385}
386
387// InterceptPeerDial .
388func (_ *TestP2P) InterceptPeerDial(peer.ID) (allow bool) {389	return true
390}
391