From 6dfd6058ef1a33fa72ca70c9f8344633a760fdc1 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 7 Oct 2024 08:44:34 +0200 Subject: [PATCH] test --- models/peer/peer_cache.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 385ebfb..eff1895 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -60,7 +60,8 @@ func (p *PeerCache) checkPeerStatus(peerID string, appName string, caller *tools if meth == "" { return res.(*Peer), false } - url := p.urlFormat(res.(*Peer).Url+meth, tools.PEER) // Format the URL + url := p.urlFormat(res.(*Peer).Url+meth, tools.PEER) // Format the URL + fmt.Println("Checking peer status on", url, "...") state, services := api.CheckRemotePeer(url) // 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 @@ -109,6 +110,7 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string, // exec executes the method on the peer func (p *PeerCache) exec(url string, method tools.METHOD, body map[string]interface{}, caller *tools.HTTPCaller) error { + fmt.Println("exec", url, "...") var b []byte var err error if method == tools.POST { // Execute the POST method if it's a POST method