Skip to content

Commit 40c8063

Browse files
TokiToki
authored andcommitted
fix: update dns version in libp2p cargo - fix use of tokio in libp2p-memory-connection-limits
1 parent 56c8a23 commit 40c8063

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ libp2p-autonat = { version = "0.14.1", path = "protocols/autonat" }
8080
libp2p-connection-limits = { version = "0.5.1", path = "misc/connection-limits" }
8181
libp2p-core = { version = "0.43.1", path = "core" }
8282
libp2p-dcutr = { version = "0.13.0", path = "protocols/dcutr" }
83-
libp2p-dns = { version = "0.44.0", path = "transports/dns" }
83+
libp2p-dns = { version = "0.45.0", path = "transports/dns" }
8484
libp2p-floodsub = { version = "0.46.1", path = "protocols/floodsub" }
8585
libp2p-gossipsub = { version = "0.49.0", path = "protocols/gossipsub" }
8686
libp2p-identify = { version = "0.47.0", path = "protocols/identify" }

misc/memory-connection-limits/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ sysinfo = "0.33"
1818
tracing = { workspace = true }
1919

2020
[dev-dependencies]
21-
tokio = { workspace = true, features = ["macros", "time"] }
21+
tokio = { workspace = true, features = ["macros", "time", "rt", "rt-multi-thread"] }
2222
libp2p-identify = { workspace = true }
2323
libp2p-swarm-derive = { path = "../../swarm-derive" }
2424
libp2p-swarm-test = { path = "../../swarm-test" }
25-
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
2625

2726
[lints]
2827
workspace = true

transports/dns/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ mod tests {
581581

582582
// These helpers will be compiled conditionally, depending on the async runtime in use.
583583

584-
#[cfg(feature = "tokio")]
585584
fn test_tokio<T, F: Future<Output = ()>>(
586585
transport: T,
587586
test_fn: impl FnOnce(tokio::Transport<T>) -> F,

0 commit comments

Comments
 (0)