Merge Protocol and ProtocolBehaviour (#2962)

* Pass the peerset config to ProtocolBehaviour

* Don't pass the protocol versions

* Move fields from protocol_behaviour.rs to protocol.rs

* Remove LocalNetworkOut

* Move CustomProtos from protocol_behaviour.rs to protocol.rs

* Remove ProtocolBehaviour

* Inline poll()

* Force Behaviour to use Protocol

* Don't even attempt to have working tests

* Remove NetworkOut trait

* Line widths
This commit is contained in:
Pierre Krieger
2019-07-05 16:06:07 +02:00
committed by GitHub
parent 6761ef1655
commit 489a5ce9d7
5 changed files with 408 additions and 774 deletions
File diff suppressed because it is too large Load Diff