From 19eb5239a6c53bb2bc636fb86e4737d58ec317f8 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 21 Jan 2025 08:36:10 +0100 Subject: [PATCH] light modification --- models/peer/peer_cache.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 3b590d5..e877686 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -105,12 +105,13 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string, NewShallowAccessor().UpdateOne(mypeer, peerID) // Update the peer in the db return nil, errors.New("peer is not reachable") } else { - fmt.Println("Peer is reachable") + fmt.Println("Peer is reachable", mypeer) if mypeer == nil { return nil, errors.New("peer not found") } // If the peer is reachable, launch the execution - url = p.urlFormat((mypeer.Url)+meth, dt) // Format the URL + url = p.urlFormat((mypeer.Url)+meth, dt) // Format the URL + fmt.Println("Peer is reachable 2", url) tmp := mypeer.FailedExecution // Get the failed executions list mypeer.FailedExecution = []PeerExecution{} // Reset the failed executions list NewShallowAccessor().UpdateOne(mypeer, peerID) // Update the peer in the db