Skip to content

Is it fine to have multiple RequestResponse fields in a single network behaviour struct? #5795

Answered by romac
tqwewe asked this question in Q&A
Discussion options

You must be logged in to vote

It should be fine as long as you construct each behavior with a unique StreamProtocol so that libp2p can associate a separate stream with each one.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tqwewe
Comment options

You must be logged in to vote
0 replies
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