From 0861131231ff52a14a8b136d474099c08262b27f Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Fri, 2 Aug 2024 00:12:27 +0100 Subject: [PATCH] Bump `init_once` --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/sdk/src/masp/shielded_sync/utils.rs | 4 ++-- wasm/Cargo.lock | 4 ++-- wasm_for_tests/Cargo.lock | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 40c7f581788..1cdacb6caeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3817,9 +3817,9 @@ dependencies = [ [[package]] name = "init-once" -version = "0.3.0" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6b85c36876c5e9de26db046122a73554d93daa6a9da588583603b4e54adc3e" +checksum = "2f3deb611f70004c20bf0c6b803446fbfbd5d7e98c9294834a17ce11d9443c8e" dependencies = [ "portable-atomic", ] diff --git a/Cargo.toml b/Cargo.toml index 46cbbd17b5f..913d4047deb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -117,7 +117,7 @@ ibc-testkit = { git = "https://github.com/cosmos/ibc-rs", rev = "7ff41b3804cda64 ics23 = "0.11.0" index-set = { git = "https://github.com/heliaxdev/index-set", tag = "v0.8.1", features = ["serialize-borsh", "serialize-serde"] } indexmap = { git = "https://github.com/heliaxdev/indexmap", tag = "2.2.4-heliax-1", features = ["borsh-schema", "serde"] } -init-once = "0.3.0" +init-once = "0.4.3" itertools = "0.12.1" jubjub = "0.10" k256 = { version = "0.13.0", default-features = false, features = ["ecdsa", "pkcs8", "precomputed-tables", "serde", "std"]} diff --git a/crates/sdk/src/masp/shielded_sync/utils.rs b/crates/sdk/src/masp/shielded_sync/utils.rs index 85db5148e4e..8be7e11c88f 100644 --- a/crates/sdk/src/masp/shielded_sync/utils.rs +++ b/crates/sdk/src/masp/shielded_sync/utils.rs @@ -462,9 +462,9 @@ impl IndexerMaspClient { indexer_api, semaphore: Semaphore::new(MAX_CONCURRENT_REQUESTS), block_index: { - let index = init_once::InitOnce::new(); + let mut index = init_once::InitOnce::new(); if !using_block_index { - debug_assert!(index.try_init(|| None).is_some()); + index.init(|| None); } index }, diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock index 84870f64512..c3b0dfc26d1 100644 --- a/wasm/Cargo.lock +++ b/wasm/Cargo.lock @@ -3102,9 +3102,9 @@ dependencies = [ [[package]] name = "init-once" -version = "0.3.0" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6b85c36876c5e9de26db046122a73554d93daa6a9da588583603b4e54adc3e" +checksum = "2f3deb611f70004c20bf0c6b803446fbfbd5d7e98c9294834a17ce11d9443c8e" dependencies = [ "portable-atomic", ] diff --git a/wasm_for_tests/Cargo.lock b/wasm_for_tests/Cargo.lock index 4e493a02487..a360d0093f2 100644 --- a/wasm_for_tests/Cargo.lock +++ b/wasm_for_tests/Cargo.lock @@ -3102,9 +3102,9 @@ dependencies = [ [[package]] name = "init-once" -version = "0.3.0" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6b85c36876c5e9de26db046122a73554d93daa6a9da588583603b4e54adc3e" +checksum = "2f3deb611f70004c20bf0c6b803446fbfbd5d7e98c9294834a17ce11d9443c8e" dependencies = [ "portable-atomic", ]