simplify call to peer

This commit is contained in:
mr 2024-08-23 09:57:52 +02:00
parent 152bdd8061
commit c88b29a0ca

View File

@ -98,10 +98,7 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string,
} else { } else {
url = p.urlFormat((mypeer.Url)+meth, dt) url = p.urlFormat((mypeer.Url)+meth, dt)
fmt.Println("LaunchPeerExecution AFT 3", url) fmt.Println("LaunchPeerExecution AFT 3", url)
tmp := []PeerExecution{} tmp := mypeer.FailedExecution
for _, v := range mypeer.FailedExecution {
tmp = append(tmp, v)
}
mypeer.FailedExecution = []PeerExecution{} mypeer.FailedExecution = []PeerExecution{}
mypeer.GetAccessor(nil).UpdateOne(mypeer, peerID) mypeer.GetAccessor(nil).UpdateOne(mypeer, peerID)
for _, v := range tmp { for _, v := range tmp {