Skip to content

What is the SwarmBuilder equivalent to applying an upgrade to transport? #4985

Answered by thomaseizinger
MitchTurner asked this question in Q&A
Discussion options

You must be logged in to vote

If one is a basic TCP and the other is my fancy TCP

Don't do that! :)

You should only ever have one transport that can handle a certain multiaddr. The transport you configure "after" will never be used.

Can I use the SwarmBuilder and only use with_other_transport and not specify a with_tcp at all? It seems to build, but my tests are still failing so I can't tell if it's janky. I have some tests that pass if I include both, but fail if I only include the with_other_transport.

Yes that should work. with_tcp uses the same APIs under the hood! :)

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@MitchTurner
Comment options

@thomaseizinger
Comment options

Comment options

You must be logged in to vote
9 replies
@thomaseizinger
Comment options

@thomaseizinger
Comment options

@MitchTurner
Comment options

@thomaseizinger
Comment options

Answer selected by MitchTurner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants