diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 4cb3dea..ebac74e 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -98,10 +98,7 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string, } else { url = p.urlFormat((mypeer.Url)+meth, dt) fmt.Println("LaunchPeerExecution AFT 3", url) - tmp := []PeerExecution{} - for _, v := range mypeer.FailedExecution { - tmp = append(tmp, v) - } + tmp := mypeer.FailedExecution mypeer.FailedExecution = []PeerExecution{} mypeer.GetAccessor(nil).UpdateOne(mypeer, peerID) for _, v := range tmp {