Rename KeepAlive constructors. (#1078)

* KeepAlive::Now => KeepAlive::No
  * KeepAlive::Forever => KeepAlive::Yes

As suggested in #1072.
This commit is contained in:
Roman Borschel
2019-04-23 11:58:49 +02:00
committed by Pierre Krieger
parent 5c34f8a0ed
commit 8cde987e6d
11 changed files with 26 additions and 26 deletions

View File

@ -202,7 +202,7 @@ where
// the connection may be closed. I.e. the ping handler does not keep
// the connection alive, it merely adds another condition (failed pings)
// for terminating it.
KeepAlive::Now
KeepAlive::No
}
fn poll(&mut self) -> Poll<ProtocolsHandlerEvent<protocol::Ping, (), PingResult>, Self::Error> {