File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -339,13 +339,25 @@ impl NetworkClient {
339
339
}
340
340
341
341
pub ( crate ) async fn prover_network_client ( & self ) -> Result < ProverNetworkClient < Channel > > {
342
- let channel = grpc:: configure_endpoint ( & self . rpc_url ) ?. connect ( ) . await ?;
343
- Ok ( ProverNetworkClient :: new ( channel) )
342
+ self . with_retry (
343
+ || async {
344
+ let channel = grpc:: configure_endpoint ( & self . rpc_url ) ?. connect ( ) . await ?;
345
+ Ok ( ProverNetworkClient :: new ( channel) )
346
+ } ,
347
+ "creating network client" ,
348
+ )
349
+ . await
344
350
}
345
351
346
352
pub ( crate ) async fn artifact_store_client ( & self ) -> Result < ArtifactStoreClient < Channel > > {
347
- let channel = grpc:: configure_endpoint ( & self . rpc_url ) ?. connect ( ) . await ?;
348
- Ok ( ArtifactStoreClient :: new ( channel) )
353
+ self . with_retry (
354
+ || async {
355
+ let channel = grpc:: configure_endpoint ( & self . rpc_url ) ?. connect ( ) . await ?;
356
+ Ok ( ArtifactStoreClient :: new ( channel) )
357
+ } ,
358
+ "creating artifact client" ,
359
+ )
360
+ . await
349
361
}
350
362
351
363
pub ( crate ) async fn create_artifact_with_content < T : Serialize + Send + Sync > (
You can’t perform that action at this time.
0 commit comments