Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ SetID
Method
SetID
p2pserver/peer/peer.go:52–54 ·
view source on GitHub ↗
SetID sets a peer's id
(id uint64)
Source
from the content-addressed store, hash-verified
50
51
// SetID sets a peer's id
52
func
(this *PeerCom) SetID(id uint64) {
53
this.id = id
54
}
55
56
// GetID returns a peer's id
57
func
(this *PeerCom) GetID() uint64 {
Callers
2
TestGetPeerComInfo
Function · 0.45
UpdateInfo
Method · 0.45
Calls
no outgoing calls
Tested by
1
TestGetPeerComInfo
Function · 0.36