Skip to content

Commit

Permalink
update async-std (paritytech#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and bkchr committed Apr 10, 2024
1 parent dbb72fa commit f43e405
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bridges/modules/message-lane/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"

[dev-dependencies]
async-std = "1.6.2"
async-std = "1.6.5"

[dev-dependencies.substrate-test-runtime-client]
version = "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

[dependencies]
ansi_term = "0.12"
async-std = "1.6.2"
async-std = "1.6.5"
async-trait = "0.1.40"
bp-currency-exchange = { path = "../../primitives/currency-exchange" }
bp-eth-poa = { path = "../../primitives/ethereum-poa" }
Expand Down
13 changes: 13 additions & 0 deletions bridges/relays/ethereum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,3 +434,16 @@ fn parse_hex_argument(matches: &clap::ArgMatches, arg: &str) -> Result<Option<Ve
None => Ok(None),
}
}

#[cfg(test)]
mod tests {

// Details: https://github.com/paritytech/parity-bridges-common/issues/118
#[test]
fn async_std_sleep_works() {
let mut local_pool = futures::executor::LocalPool::new();
local_pool.run_until(async move {
async_std::task::sleep(std::time::Duration::from_secs(1)).await;
});
}
}
2 changes: 1 addition & 1 deletion bridges/relays/exchange-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

[dependencies]
async-std = "1.6.2"
async-std = "1.6.5"
async-trait = "0.1.40"
backoff = "0.2"
futures = "0.3.5"
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/headers-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

[dependencies]
async-std = "1.6.2"
async-std = "1.6.5"
async-trait = "0.1.40"
backoff = "0.2"
futures = "0.3.5"
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/messages-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

[dependencies]
async-std = "1.6.2"
async-std = "1.6.5"
async-trait = "0.1.40"
futures = "0.3.5"
log = "0.4.11"
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

[dependencies]
async-std = "1.6.2"
async-std = "1.6.5"
backoff = "0.2"
futures = "0.3.5"
log = "0.4.11"
Expand Down

0 comments on commit f43e405

Please sign in to comment.