Contact struct removed from peer
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-02-10 22:36:25 +01:00
parent 24183ff581
commit 0fd7548ba4
5 changed files with 44 additions and 30 deletions

View File

@ -8,7 +8,7 @@ type PeerList []Peer
func (pl *PeerList) GetFromPublicKey(publickey string) *Peer {
for _, peer := range *pl {
if peer.Contact.ContactPublicKey == publickey {
if peer.ContactPublicKey == publickey {
return &peer
}
}
@ -26,7 +26,7 @@ func (pl *PeerList) GetFromMyLookupKey(publickey string) *Peer {
func (pl *PeerList) GetFromName(name string) *Peer {
for _, peer := range *pl {
if peer.Contact.Name == name {
if peer.Name == name {
return &peer
}
}