Give names to channels (#5626)

* Give names to channels

* Fix

* A couple more changes

* More minor tweaks

* Fix test
This commit is contained in:
Pierre Krieger
2020-04-14 14:49:41 +02:00
committed by GitHub
parent 5afa74254e
commit 1e1b0e2767
5 changed files with 34 additions and 24 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ pub trait Network<B: BlockT> {
impl<B: BlockT, H: ExHashT> Network<B> for Arc<NetworkService<B, H>> {
fn event_stream(&self) -> Pin<Box<dyn Stream<Item = Event> + Send>> {
Box::pin(NetworkService::event_stream(self))
Box::pin(NetworkService::event_stream(self, "network-gossip"))
}
fn report_peer(&self, peer_id: PeerId, reputation: ReputationChange) {