Skip to content

Commit

Permalink
removed tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp committed May 11, 2023
1 parent c6f2de0 commit 0919e5e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion forc-pkg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ sway-error = { version = "0.38.0", path = "../sway-error" }
sway-types = { version = "0.38.0", path = "../sway-types" }
sway-utils = { version = "0.38.0", path = "../sway-utils" }
tar = "0.4.38"
tokio = { version = "1.0" }
toml = "0.5"
tracing = "0.1"
url = { version = "2.2", features = ["serde"] }
Expand Down
2 changes: 0 additions & 2 deletions forc-pkg/src/source/ipfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ impl source::Fetch for Pinned {
let cid = &self.0;
let ipfs_client = ipfs_client();
let dest = cache_dir();
let handle = tokio::runtime::Handle::current();
let _ = handle.enter();
futures::executor::block_on(async {
if cid.fetch_with_client(&ipfs_client, &dest).await.is_err() {
warn!(" Couldn't fetch from local ipfs node. Falling back to {PUBLIC_GATEWAY}.");
Expand Down

0 comments on commit 0919e5e

Please sign in to comment.