Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ethstorage/es-node
/ notifyPeerJoin
Method
notifyPeerJoin
ethstorage/p2p/protocol/syncclient.go:705–710 ·
view source on GitHub ↗
(id peer.ID)
Source
from the content-addressed store, hash-verified
703
}
704
705
func
(s *SyncClient) notifyPeerJoin(id peer.ID) {
706
select
{
707
case
s.peerJoin <- id:
708
default:
709
}
710
}
711
712
func
(s *SyncClient) notifyUpdate() {
713
select
{
Callers
1
AddPeer
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected