mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 00:41:59 +00:00
swarm/: Rename ProtocolsHandler to ConnectionHandler (#2527)
A `ProtocolsHandler`, now `ConnectionHandler`, handels a connection, not a protocol. Thus the name `CONNECTIONHandler` is more appropriate. Next to the rename of `ProtocolsHandler` this commit renames the `mod protocols_handler` to `mod handler`. Finally all combinators (e.g. `ProtocolsHandlerSelect`) are renamed appropriately.
This commit is contained in:
@@ -217,7 +217,7 @@ mod network {
|
||||
ProtocolSupport, RequestId, RequestResponse, RequestResponseCodec, RequestResponseEvent,
|
||||
RequestResponseMessage, ResponseChannel,
|
||||
};
|
||||
use libp2p::swarm::{ProtocolsHandlerUpgrErr, SwarmBuilder, SwarmEvent};
|
||||
use libp2p::swarm::{ConnectionHandlerUpgrErr, SwarmBuilder, SwarmEvent};
|
||||
use libp2p::{NetworkBehaviour, Swarm};
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::iter;
|
||||
@@ -404,7 +404,7 @@ mod network {
|
||||
&mut self,
|
||||
event: SwarmEvent<
|
||||
ComposedEvent,
|
||||
EitherError<ProtocolsHandlerUpgrErr<io::Error>, io::Error>,
|
||||
EitherError<ConnectionHandlerUpgrErr<io::Error>, io::Error>,
|
||||
>,
|
||||
) {
|
||||
match event {
|
||||
|
Reference in New Issue
Block a user