diff --git a/src/main.rs b/src/main.rs index 8a34a94..3e11666 100644 --- a/src/main.rs +++ b/src/main.rs @@ -708,8 +708,8 @@ async fn create_asset_medias(config:CreateAssetMediasConfig)->AResult<()>{ let context=&context; async{ match create_result{ - Ok(operation)=>match operation.wait(context).await{ - Ok(())=>Some(operation), + Ok(create_asset_response)=>match get_asset_exp_backoff(context,&create_asset_response).await{ + Ok(asset_response)=>Some(asset_response), Err(e)=>{ eprintln!("operation error: {}",e); None