From 3885eba80940c31732c0f9ec799dcd0cabea9795 Mon Sep 17 00:00:00 2001 From: Adrian Benavides Date: Tue, 21 Feb 2023 12:15:33 +0700 Subject: [PATCH] fix(rust): add 15 seconds timeout to influx and confluent `addon configure` commands --- implementations/rust/ockam/ockam_command/src/project/addon.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/implementations/rust/ockam/ockam_command/src/project/addon.rs b/implementations/rust/ockam/ockam_command/src/project/addon.rs index fd61ffb1a45..1187639c2c3 100644 --- a/implementations/rust/ockam/ockam_command/src/project/addon.rs +++ b/implementations/rust/ockam/ockam_command/src/project/addon.rs @@ -393,6 +393,7 @@ async fn run_impl( // Wait until project is ready again println!("Getting things ready for project..."); + tokio::time::sleep(std::time::Duration::from_secs(15)).await; let project_id = config::get_project(&opts.config, &project_name) .context("project not found in lookup")?; @@ -442,6 +443,8 @@ async fn run_impl( // Wait until project is ready again println!("Getting things ready for project..."); + tokio::time::sleep(std::time::Duration::from_secs(15)).await; + let project_id = config::get_project(&opts.config, &project_name) .context("project not found in lookup")?; let retry_strategy = FixedInterval::from_millis(5000).take(4);