Fixes the -Werror for unused "continue_next": we just use it.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
parent
6962030db8
commit
cfb5cb89d3
|
|
@ -36,6 +36,10 @@ etcd::KeepAlive::~KeepAlive()
|
|||
|
||||
void etcd::KeepAlive::Cancel()
|
||||
{
|
||||
if (!continue_next) {
|
||||
return;
|
||||
}
|
||||
continue_next = false;
|
||||
#ifndef NDEBUG
|
||||
{
|
||||
std::ios::fmtflags os_flags (std::cout.flags());
|
||||
|
|
@ -52,6 +56,9 @@ void etcd::KeepAlive::Cancel()
|
|||
|
||||
void etcd::KeepAlive::refresh()
|
||||
{
|
||||
if (!continue_next) {
|
||||
return;
|
||||
}
|
||||
// minimal resolution: 1 second
|
||||
int keepalive_ttl = std::max(ttl - 1, 1);
|
||||
#ifndef NDEBUG
|
||||
|
|
|
|||
Loading…
Reference in New Issue