mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-02 11:11:36 +00:00
Rename KeepAlive constructors. (#1078)
* KeepAlive::Now => KeepAlive::No * KeepAlive::Forever => KeepAlive::Yes As suggested in #1072.
This commit is contained in:
committed by
Pierre Krieger
parent
5c34f8a0ed
commit
8cde987e6d
@ -222,7 +222,7 @@ where
|
||||
|
||||
fn connection_keep_alive(&self) -> KeepAlive {
|
||||
self.inner.as_ref().map(|h| h.connection_keep_alive())
|
||||
.unwrap_or(KeepAlive::Now)
|
||||
.unwrap_or(KeepAlive::No)
|
||||
}
|
||||
|
||||
fn poll(
|
||||
|
Reference in New Issue
Block a user