light modification
This commit is contained in:
parent
305f260503
commit
19eb5239a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user