From 00896e85ffd11373231117487a063a4046a5a702 Mon Sep 17 00:00:00 2001 From: Patrik Stas Date: Fri, 22 Sep 2023 13:38:28 +0200 Subject: [PATCH] Minimize tokio dependencies Signed-off-by: Patrik Stas --- aries_vcx/Cargo.toml | 1 - aries_vcx/src/common/proofs/verifier/verifier.rs | 2 +- aries_vcx/src/common/test_utils.rs | 2 +- aries_vcx_core/Cargo.toml | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/aries_vcx/Cargo.toml b/aries_vcx/Cargo.toml index 43b78a29c5..a928ef7499 100644 --- a/aries_vcx/Cargo.toml +++ b/aries_vcx/Cargo.toml @@ -51,7 +51,6 @@ uuid = { version = "0.8", default-features = false, features = ["v4"] } strum = "0.16.0" strum_macros = "0.16.0" derive_builder = "0.10.2" -tokio = { version = "1.20.4" } thiserror = "1.0.37" url = { version = "2.3", features = ["serde"] } diff --git a/aries_vcx/src/common/proofs/verifier/verifier.rs b/aries_vcx/src/common/proofs/verifier/verifier.rs index dbd75e0c3c..ba9d9126a0 100644 --- a/aries_vcx/src/common/proofs/verifier/verifier.rs +++ b/aries_vcx/src/common/proofs/verifier/verifier.rs @@ -277,7 +277,7 @@ pub mod integration_tests { false, ) .await; - tokio::time::sleep(Duration::from_millis(500)).await; + std::thread::sleep(Duration::from_millis(500)); let cred_id = create_and_write_credential( anoncreds_issuer, diff --git a/aries_vcx/src/common/test_utils.rs b/aries_vcx/src/common/test_utils.rs index 1831011185..286e26644e 100644 --- a/aries_vcx/src/common/test_utils.rs +++ b/aries_vcx/src/common/test_utils.rs @@ -46,7 +46,7 @@ pub async fn create_and_write_test_schema( .publish_schema(&schema_json, submitter_did, None) .await .unwrap(); - tokio::time::sleep(Duration::from_millis(1000)).await; + std::thread::sleep(Duration::from_millis(500)); Schema::create_from_ledger_json(&schema_json, "", &schema_id).unwrap() } diff --git a/aries_vcx_core/Cargo.toml b/aries_vcx_core/Cargo.toml index 5ddbe5fbea..1be9ac1135 100644 --- a/aries_vcx_core/Cargo.toml +++ b/aries_vcx_core/Cargo.toml @@ -31,7 +31,7 @@ thiserror = "1.0.40" lazy_static = "1.4.0" derive_builder = "0.12.0" uuid = { version = "1.3.0", default-features = false, features = ["v4"] } -tokio = { version = "1.20" } +tokio = { version = "1.20.5", features = ["sync"], default-features = false } indy-vdr-proxy-client = { git = "https://github.com/hyperledger/indy-vdr.git", rev = "879e29e", optional = true } indy-ledger-response-parser = { path = "../indy_ledger_response_parser" } lru = { version = "0.10.0" }