1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00
This commit is contained in:
Juan Batiz-Benet
2014-07-12 01:51:45 -07:00
parent deb7dd4872
commit 8d68a72685

View File

@ -16,6 +16,10 @@ type Peer struct {
Addresses []*ma.Multiaddr
}
func (p *Peer) Key() u.Key {
return u.Key(p.Id)
}
func (p *Peer) AddAddress(a *ma.Multiaddr) {
p.Addresses = append(p.Addresses, a)
}