You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwarmBuilder::with_bandwidth_logging allows adding a bandwidth logging to a tree of transports constructed via SwarmBuilder. It returns both the builder and the BandwidthSinks. That is not ideal as it breaks the builder chain.
Description
SwarmBuilder::with_bandwidth_logging
allows adding a bandwidth logging to a tree of transports constructed viaSwarmBuilder
. It returns both the builder and theBandwidthSinks
. That is not ideal as it breaks the builder chain.This originally came up in #4120 (comment).
Motivation
A single continuous builder chain is more ergonomic.
Current Implementation
The current
with_bandwidth_logging
requires a two step builder flow:rust-libp2p/libp2p/src/builder.rs
Lines 300 to 321 in 56cb08a
See also #4626 (comment).
Are you planning to do it yourself in a pull request ?
No
The text was updated successfully, but these errors were encountered: