diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 42b0479..8e89f76 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -69,7 +69,7 @@ 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, tools.PEER) + meth // 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