How to use with_bandwidth_metrics in the new SwarmBuilder with a optional registry? #5014
-
I have an optional registry in our system like |
Beta Was this translation helpful? Give feedback.
Answered by
thomaseizinger
Dec 21, 2023
Replies: 1 comment 1 reply
-
Your best bet is to branch on the existence of the registry and finish the builder so both branches of your rust-libp2p/interop-tests/src/arch.rs Lines 38 to 164 in bdcb081 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gurinderu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your best bet is to branch on the existence of the registry and finish the builder so both branches of your
match
result in the same type. We do the same thing for our interop tests:rust-libp2p/interop-tests/src/arch.rs
Lines 38 to 164 in bdcb081