Refactor structs with some getters/setters - Peers part
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -37,7 +37,7 @@ func (sl *ServerList) GetServerByIdx(idx int) (server *Server, err error) {
|
||||
// GetServerByPubkey returns a server from it's public key
|
||||
func (sl *ServerList) GetServerByPubkey(pubkey string) (filtered *Server) {
|
||||
for _, srv := range sl.Servers {
|
||||
if srv.ServerData.PublicKey == pubkey {
|
||||
if srv.PublicKey == pubkey {
|
||||
return &srv
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user