Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow sent messages seen as subscribed #1520

Merged
merged 6 commits into from
Apr 9, 2020
Merged

feat: allow sent messages seen as subscribed #1520

merged 6 commits into from
Apr 9, 2020

Conversation

koivunej
Copy link
Contributor

minor feature to allow mimicing the behaviour expected by ipfs http api tests. default behaviour is not changed.

koivunej pushed a commit to eqlabs/rust-ipfs that referenced this pull request Mar 25, 2020
the v0.16.2-with-floodsub-opts includes "subscribers see locally
published messages" which is needed for the conformance tests to pass.
this has been PR'd as libp2p/rust-libp2p#1520.
koivunej pushed a commit to eqlabs/rust-ipfs that referenced this pull request Mar 25, 2020
the v0.16.2-with-floodsub-opts includes "subscribers see locally
published messages" which is needed for the conformance tests to pass.
this has been PR'd as libp2p/rust-libp2p#1520.
@koivunej koivunej mentioned this pull request Mar 25, 2020
2 tasks
koivunej pushed a commit to eqlabs/rust-ipfs that referenced this pull request Mar 25, 2020
the v0.16.2-with-floodsub-opts includes "subscribers see locally
published messages" which is needed for the conformance tests to pass.
this has been PR'd as libp2p/rust-libp2p#1520.
koivunej pushed a commit to rs-ipfs/rust-ipfs that referenced this pull request Mar 25, 2020
* add: pubsub http api
* add: get shoveling and subscription complications going

currently the missing piece is seeing locally sent messages in the
subscribed streams, then maybe creating a more complicated API for
subscribing which will require a single task for shoveling into the
responses.

* chore: lower timeout to pass the tests

Should probably have another drop sender here.

* fix: close stream on first error

tokio::sync::broadcast will continue after telling how many items were
lost, which seems likely with the small buffer and quickly firing more
than the buffer elements.

* fix: raise the buffer size for subscribe responses
* feat: use custom rust-libp2p to pass tests

the v0.16.2-with-floodsub-opts includes "subscribers see locally
published messages" which is needed for the conformance tests to pass.
this has been PR'd as libp2p/rust-libp2p#1520.

* fix: pubsub test after changing the floodsub impl
protocols/floodsub/src/lib.rs Outdated Show resolved Hide resolved
protocols/floodsub/src/layer.rs Outdated Show resolved Hide resolved
@koivunej
Copy link
Contributor Author

koivunej commented Apr 1, 2020

Rebased on top of latest master, renames:

  • floodsub::protocol::Floodsub{Config => Protocol}
  • floodsub::Floodsub{Options => Config}
  • floodsub::layer::Floodsub::from_{options => config}
  • floodsub::layer::Floodsub::{options => config}

I think this covers everything noted.

@koivunej koivunej requested a review from tomaka April 1, 2020 14:36
CHANGELOG.md Outdated Show resolved Hide resolved
@koivunej
Copy link
Contributor Author

koivunej commented Apr 6, 2020

Rebased on top of master. Looks like the #1532 didn't include an update to CHANGELOG as there was no conflict.

CHANGELOG.md Outdated Show resolved Hide resolved
@tomaka tomaka merged commit 80ea2f6 into libp2p:master Apr 9, 2020
@koivunej koivunej deleted the floodsub_expose_sent_messages branch April 15, 2020 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants