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 authored and GitHub committed 2020-04-14 14:49:41 +02:00
1 parent 5afa74254e
commit 1e1b0e2767
5 files changed
+34 -24

No files matched your search

+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) {