skip deleted or not connected peers for proxy

This commit is contained in:
Abhishek Kondur 2023-03-15 20:57:29 +04:00
parent 78b367cf0c
commit ddab09a974

View file

@ -80,6 +80,9 @@ func GetProxyUpdateForHost(ctx context.Context, host *models.Host) (models.Proxy
//skip yourself
continue
}
if !peer.Connected || peer.PendingDelete || peer.Action == models.NODE_DELETE {
continue
}
peerHost, err := GetHost(peer.HostID.String())
if err != nil {
continue