From 828efb4c98ad551f97a7855700d5ddb2c51d639e Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 6 Nov 2024 15:32:55 +0100 Subject: [PATCH] test --- models/peer/peer_cache.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 89e08a0..2b01324 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -71,7 +71,8 @@ func (p *PeerCache) checkPeerStatus(peerID string, appName string, caller *tools } url := p.urlFormat(res.(*Peer).Url, tools.PEER) + meth // Format the URL fmt.Println("Checking peer status on", url, "...") - state, services := api.CheckRemotePeer(url) // Check the status of the peer + state, services := api.CheckRemotePeer(url) + fmt.Println("Checking peer status on", url, state, services) // Check the status of the peer res.(*Peer).Services = services // Update the services states of the peer access.UpdateOne(res, peerID) // Update the peer in the db return res.(*Peer), state != tools.DEAD && services[appName] == 0 // Return the peer and its status