Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

fix: use unidirectional streams v0.20.x #106

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Jun 3, 2020

This PR makes libp2p pubsub subsystem use unidirectional streams instead of bidirectional streams per discussion on ipfs/go-ipfs#7390.

More details about the reasoning for this can be found in https://discuss.libp2p.io/t/gossip-questions/257/6

This PR replicates #105 for the 0.20.x version range of libp2p-floodsub

Bear in mind that a lot of this "connection logic" can be abstracted. I did not worry about it and just followed what we already had in floodsub and gossipsub. Hopefully, after gossipsub@1.1, I want to create the libp2p pubsub interface and move/refactor the tests there and re-use most of them in all our router implementations.

Needs:

@vasco-santos
Copy link
Member Author

This should be released on 0.20.x branch

@vasco-santos vasco-santos force-pushed the fix/use-unidirectional-streams-v0.20.x branch from 07a68a5 to 65a9d14 Compare June 3, 2020 14:35
@vasco-santos
Copy link
Member Author

Per ipfs/kubo#7390 (comment) this should be ready to go

@vasco-santos vasco-santos marked this pull request as ready for review June 3, 2020 16:14
@vasco-santos vasco-santos merged commit 8103e7a into 0.20.x Jun 4, 2020
@vasco-santos vasco-santos deleted the fix/use-unidirectional-streams-v0.20.x branch June 4, 2020 08:06
@vasco-santos
Copy link
Member Author

libp2p@0.20.4 is shipped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants