simplify call to peer

This commit is contained in:
mr
2024-08-23 15:43:12 +02:00
parent 5b3779e4cb
commit 1986143dd0
2 changed files with 11 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ func (p *PeerCache) checkPeerStatus(peerID string, appName string, caller *tools
state, services := api.CheckRemotePeer(url)
res.(*Peer).Services = services
access.UpdateOne(res, peerID)
fmt.Println("PEER AFT 6", state, services, appName)
return res.(*Peer), state != tools.DEAD && services[appName] == 0
}