mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-21 13:51:33 +00:00
A few typos (#666)
This commit is contained in:
@ -68,7 +68,7 @@
|
||||
//! ## Middlewares
|
||||
//!
|
||||
//! Examples of middleware connection upgrades include `PlainTextConfig` (dummy upgrade) or
|
||||
//! `SecioConfig` (encyption layer, provided by the `secio` crate).
|
||||
//! `SecioConfig` (encryption layer, provided by the `secio` crate).
|
||||
//!
|
||||
//! The output of a middleware connection upgrade implements the `AsyncRead` and `AsyncWrite`
|
||||
//! traits, just like sockets do.
|
||||
|
@ -38,7 +38,7 @@
|
||||
//! future will never be signalled.
|
||||
//!
|
||||
//! For implementation reasons, resources allocated for a ping are only ever fully reclaimed after
|
||||
//! a pong has been received by the remote. Therefore if you repeatidely ping a non-responsive
|
||||
//! a pong has been received by the remote. Therefore if you repeatedly ping a non-responsive
|
||||
//! remote you will end up using more and more memory (albeit the amount is very very small every
|
||||
//! time), even if you destroy the future returned by `ping`.
|
||||
//!
|
||||
|
@ -207,7 +207,7 @@ enum PingListenerState {
|
||||
Listening,
|
||||
/// We are trying to send a pong.
|
||||
Sending(Bytes),
|
||||
/// We are flusing the underlying sink.
|
||||
/// We are flushing the underlying sink.
|
||||
Flushing,
|
||||
/// We are shutting down everything.
|
||||
Closing,
|
||||
|
Reference in New Issue
Block a user