simplify call to peer
This commit is contained in:
parent
152bdd8061
commit
c88b29a0ca
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user