Skip to content

Commit

Permalink
rebase 5.3.X revert changes for ETH swaps from [PATCH 074/142] Use gl…
Browse files Browse the repository at this point in the history
…obal Tokio runtime (mimblewimble#543)
  • Loading branch information
bayk committed Aug 1, 2024
1 parent 4cc851b commit 1c2f426
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 95 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion impls/src/node_clients/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ impl HTTPNodeClient {

let url = format!("{}{}", self.node_url(), ENDPOINT);
let api_secret = self.node_api_secret();
let cl = self.client.clone();
let task = async move {
let params: Vec<_> = query_params
.chunks(chunk_size)
Expand All @@ -307,7 +308,7 @@ impl HTTPNodeClient {

let mut tasks = Vec::with_capacity(params.len());
for req in &reqs {
tasks.push(self.client.post_async::<Request, Response>(
tasks.push(cl.post_async::<Request, Response>(
url.as_str(),
api_secret.clone(),
req,
Expand Down
1 change: 1 addition & 0 deletions libwallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ crypto_box = "0.5"
crc = "1.8"
maplit = "1.0"
num-bigint = "0.2"
crossbeam-utils = "0.7"

libp2p = { git = "https://github.com/mwcproject/rust-libp2p", branch = "master", default-features = false, features = [ "noise", "yamux", "mplex", "dns", "tcp-tokio", "ping", "gossipsub"] }
#libp2p = { path = "../../rust-libp2p", default-features = false, features = [ "noise", "yamux", "mplex", "dns", "tcp-tokio", "ping", "gossipsub"] }
Expand Down
Loading

0 comments on commit 1c2f426

Please sign in to comment.