Skip to content

Commit cf1e287

Browse files
committed
deps(memory-connection-limits): update sysinfo to 0.33
Pull-Request: libp2p#5739.
1 parent 2bed9ea commit cf1e287

File tree

4 files changed

+97
-38
lines changed

4 files changed

+97
-38
lines changed

Cargo.lock

Lines changed: 94 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

misc/memory-connection-limits/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ memory-stats = { version = "1", features = ["always_use_statm"] }
1414
libp2p-core = { workspace = true }
1515
libp2p-swarm = { workspace = true }
1616
libp2p-identity = { workspace = true, features = ["peerid"] }
17-
sysinfo = "0.30"
17+
sysinfo = "0.33"
1818
tracing = { workspace = true }
1919

2020
[dev-dependencies]

misc/memory-connection-limits/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl Behaviour {
100100
use sysinfo::{RefreshKind, System};
101101

102102
let system_memory_bytes = System::new_with_specifics(
103-
RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()),
103+
RefreshKind::default().with_memory(MemoryRefreshKind::default().with_ram()),
104104
)
105105
.total_memory();
106106

misc/memory-connection-limits/tests/max_percentage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use util::*;
3737
fn max_percentage() {
3838
const CONNECTION_LIMIT: usize = 20;
3939
let system_info = sysinfo::System::new_with_specifics(
40-
RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()),
40+
RefreshKind::default().with_memory(MemoryRefreshKind::default().with_ram()),
4141
);
4242

4343
let mut network = Swarm::new_ephemeral(|_| TestBehaviour {

0 commit comments

Comments
 (0)