Skip to content

Commit

Permalink
deps(memory-connection-limits): update sysinfo to 0.33
Browse files Browse the repository at this point in the history
Pull-Request: #5739.
  • Loading branch information
jxs authored Dec 13, 2024
1 parent c8c1b80 commit d7b66a7
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 38 deletions.
129 changes: 94 additions & 35 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion misc/memory-connection-limits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ memory-stats = { version = "1", features = ["always_use_statm"] }
libp2p-core = { workspace = true }
libp2p-swarm = { workspace = true }
libp2p-identity = { workspace = true, features = ["peerid"] }
sysinfo = "0.30"
sysinfo = "0.33"
tracing = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion misc/memory-connection-limits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Behaviour {
use sysinfo::{RefreshKind, System};

let system_memory_bytes = System::new_with_specifics(
RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()),
RefreshKind::default().with_memory(MemoryRefreshKind::default().with_ram()),
)
.total_memory();

Expand Down
2 changes: 1 addition & 1 deletion misc/memory-connection-limits/tests/max_percentage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use util::*;
fn max_percentage() {
const CONNECTION_LIMIT: usize = 20;
let system_info = sysinfo::System::new_with_specifics(
RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()),
RefreshKind::default().with_memory(MemoryRefreshKind::default().with_ram()),
);

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

0 comments on commit d7b66a7

Please sign in to comment.