Skip to content

Commit 5ca7267

Browse files
authored
chore: Update litep2p to v0.8.3 (#6742)
## [0.8.3] - 2024-12-03 This release includes two fixes for small memory leaks on edge-cases in the notification and request-response protocols. ### Fixed - req-resp: Fix memory leak of pending substreams ([#297](paritytech/litep2p#297)) - notification: Fix memory leak of pending substreams ([#296](paritytech/litep2p#296)) cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
1 parent 34632ed commit 5ca7267

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
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
@@ -848,7 +848,7 @@ linked-hash-map = { version = "0.5.4" }
848848
linked_hash_set = { version = "0.1.4" }
849849
linregress = { version = "0.5.1" }
850850
lite-json = { version = "0.2.0", default-features = false }
851-
litep2p = { version = "0.8.2", features = ["websocket"] }
851+
litep2p = { version = "0.8.3", features = ["websocket"] }
852852
log = { version = "0.4.22", default-features = false }
853853
macro_magic = { version = "0.5.1" }
854854
maplit = { version = "1.0.2" }

prdoc/pr_6742.prdoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: Update litep2p backend to v0.8.3
2+
doc:
3+
- audience: Node Dev
4+
description: |-
5+
This release includes two fixes for small memory leaks on edge-cases in the notification and request-response protocols.
6+
While at it, have downgraded a log message from litep2p.
7+
8+
crates:
9+
- name: sc-network
10+
bump: patch
11+

substrate/client/network/src/litep2p/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkBackend<B, H> for Litep2pNetworkBac
753753
}
754754

755755
if self.litep2p.add_known_address(peer.into(), iter::once(address.clone())) == 0usize {
756-
log::warn!(
756+
log::debug!(
757757
target: LOG_TARGET,
758758
"couldn't add known address ({address}) for {peer:?}, unsupported transport"
759759
);

0 commit comments

Comments
 (0)