mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-25 15:51:34 +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:
@ -53,7 +53,7 @@
|
||||
//!
|
||||
//! > **Note**: You can use the `apply_inbound` or `apply_outbound` methods to try upgrade a
|
||||
//! connection or substream. However if you use the recommended `Swarm` or
|
||||
//! `ProtocolsHandler` APIs, the upgrade is automatically handled for you and you don't
|
||||
//! `ConnectionHandler` APIs, the upgrade is automatically handled for you and you don't
|
||||
//! need to use these methods.
|
||||
//!
|
||||
|
||||
|
Reference in New Issue
Block a user