MCPcopy 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
52func (this *PeerCom) SetID(id uint64) {
53 this.id = id
54}
55
56// GetID returns a peer's id
57func (this *PeerCom) GetID() uint64 {

Callers 2

TestGetPeerComInfoFunction · 0.45
UpdateInfoMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestGetPeerComInfoFunction · 0.36