P2p: improve cancelation in maintenance
This commit is contained in:
parent
07595c9e1f
commit
359f2d6932
@ -114,7 +114,9 @@ let rec try_to_contact
|
|||||||
else
|
else
|
||||||
List.fold_left
|
List.fold_left
|
||||||
(fun acc point ->
|
(fun acc point ->
|
||||||
P2p_pool.connect pool point >>= function
|
protect ~canceler:st.canceler begin fun () ->
|
||||||
|
P2p_pool.connect pool point
|
||||||
|
end >>= function
|
||||||
| Ok _ -> acc >|= succ
|
| Ok _ -> acc >|= succ
|
||||||
| Error _ -> acc)
|
| Error _ -> acc)
|
||||||
(Lwt.return 0)
|
(Lwt.return 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user