Skip to content

Commit 5e349f5

Browse files
committed
feat(gossipsub): implement backpressures
1 parent 3837e33 commit 5e349f5

File tree

14 files changed

+1809
-1050
lines changed

14 files changed

+1809
-1050
lines changed

Cargo.lock

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

protocols/gossipsub/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
- Attempt to publish to at least mesh_n peers when flood publish is disabled.
44
See [PR 5578](https://github.com/libp2p/rust-libp2p/pull/5578).
55

6+
- Introduce back pressure and penalize slow peers. Drop stale messages that timeout before being
7+
delivered.
8+
See [PR 5595](https://github.com/libp2p/rust-libp2p/pull/5595).
9+
- Change `Behaviour::unsubscribe` and `Behaviour::report_message_validation_result`
10+
to `bool` they don't need to be a `Result`.
11+
See [PR 5595](https://github.com/libp2p/rust-libp2p/pull/5595).
12+
613
## 0.47.0
714

815
<!-- Update to libp2p-swarm v0.45.0 -->

protocols/gossipsub/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ categories = ["network-programming", "asynchronous"]
1414
wasm-bindgen = ["getrandom/js"]
1515

1616
[dependencies]
17+
async-channel = "2.3.1"
1718
asynchronous-codec = { workspace = true }
1819
base64 = "0.22.1"
1920
byteorder = "1.5.0"
@@ -22,6 +23,7 @@ either = "1.11"
2223
fnv = "1.0.7"
2324
futures = { workspace = true }
2425
futures-ticker = "0.0.3"
26+
futures-timer = "3.0.2"
2527
getrandom = "0.2.15"
2628
hex_fmt = "0.3.0"
2729
web-time = { workspace = true }

0 commit comments

Comments
 (0)