mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 06:11:34 +00:00
A few typos (#666)
This commit is contained in:
@ -68,7 +68,7 @@
|
|||||||
//! ## Middlewares
|
//! ## Middlewares
|
||||||
//!
|
//!
|
||||||
//! Examples of middleware connection upgrades include `PlainTextConfig` (dummy upgrade) or
|
//! 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`
|
//! The output of a middleware connection upgrade implements the `AsyncRead` and `AsyncWrite`
|
||||||
//! traits, just like sockets do.
|
//! traits, just like sockets do.
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
//! future will never be signalled.
|
//! future will never be signalled.
|
||||||
//!
|
//!
|
||||||
//! For implementation reasons, resources allocated for a ping are only ever fully reclaimed after
|
//! 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
|
//! 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`.
|
//! time), even if you destroy the future returned by `ping`.
|
||||||
//!
|
//!
|
||||||
|
@ -207,7 +207,7 @@ enum PingListenerState {
|
|||||||
Listening,
|
Listening,
|
||||||
/// We are trying to send a pong.
|
/// We are trying to send a pong.
|
||||||
Sending(Bytes),
|
Sending(Bytes),
|
||||||
/// We are flusing the underlying sink.
|
/// We are flushing the underlying sink.
|
||||||
Flushing,
|
Flushing,
|
||||||
/// We are shutting down everything.
|
/// We are shutting down everything.
|
||||||
Closing,
|
Closing,
|
||||||
|
Reference in New Issue
Block a user