Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@tomaka
Copy link
Contributor

@tomaka tomaka commented Jun 26, 2019

Merges Protocol and ProtocolBehaviour.
The Protocol struct now implements NetworkBehaviour.

The PR is ready, except for the fact that it totally breaks the network tests in an unrecoverable way.
Right now the network tests infrastructure assumes that we have a single channel of communication with the remote, and that Protocol exposes this in its API. This PR makes this an implementation detail of Protocol. Because of that, the tests, by design, can't be "just fixed".

I'm going to start working on rewriting the TestNet struct, after which we will be able to merge this PR on top. I'm opening it now, so that people are aware of upcoming changes.

Can be reviewed commit by commit.

@tomaka tomaka added the A0-please_review Pull request needs code review. label Jun 26, 2019
@tomaka tomaka requested a review from twittner June 26, 2019 19:41
@gavofyork
Copy link
Member

@tomaka is this in draft? or ready for review?

@tomaka
Copy link
Contributor Author

tomaka commented Jul 2, 2019

It's ready for review! Just not for merging, as I want to submit another PR to merge first that rewrites the tests.

Copy link
Contributor

@twittner twittner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a look at this a couple of days ago. The changes seem fine to me. I was unsure though what to do given the draft status and the failing check.

@gavofyork gavofyork added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Jul 2, 2019
@tomaka tomaka marked this pull request as ready for review July 5, 2019 11:58
@tomaka
Copy link
Contributor Author

tomaka commented Jul 5, 2019

Ready to review/merge!

@tomaka tomaka added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Jul 5, 2019
Copy link
Contributor

@twittner twittner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking good!

@tomaka tomaka merged commit 6dc833c into paritytech:master Jul 5, 2019
@tomaka tomaka deleted the net-service-cleanup branch July 5, 2019 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants