File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ where
353353 let network = network. clone ( ) ;
354354 async move {
355355 let retry_strategy =
356- FixedInterval :: from_millis ( 200 ) . map ( jitter) . take ( 6 ) ;
356+ FixedInterval :: from_millis ( 200 ) . map ( jitter) . take ( 15 ) ;
357357
358358 async fn attempt_push < T > (
359359 network : T ,
Original file line number Diff line number Diff line change @@ -340,18 +340,12 @@ impl JobExecutor for ParameterServerExecutor {
340340 }
341341 } ;
342342
343- match Retry :: spawn ( retry_strategy. clone ( ) , || {
344- let connector = connector. clone ( ) ;
345- let send = send. clone ( ) ;
346- let cancel = cancel. clone ( ) ;
347- async move { broadcast_update (
343+ match broadcast_update (
348344 connector. clone ( ) ,
349345 send,
350346 gradient_file,
351- cancel. clone ( ) ,
347+ cancel. clone ( )
352348 ) . await
353- }
354- } ) . await
355349 {
356350 Ok ( ( ) ) => {
357351 pending_update = None ;
You can’t perform that action at this time.
0 commit comments