Open
Description
Description
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.
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
Metadata
Assignees
Labels
No labels
Activity