From 3bac0864288fe284d9b30b11996cd10c0ddd3abb Mon Sep 17 00:00:00 2001 From: Tao He Date: Wed, 3 Feb 2021 01:26:27 +0800 Subject: [PATCH] Fixes a unused warning. Signed-off-by: Tao He --- src/KeepAlive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeepAlive.cpp b/src/KeepAlive.cpp index 3685260..e617423 100644 --- a/src/KeepAlive.cpp +++ b/src/KeepAlive.cpp @@ -9,7 +9,7 @@ etcd::KeepAlive::KeepAlive(Client const &client, int ttl, int64_t lease_id): etcdv3::ActionParameters params; params.auth_token.assign(client.auth_token); - params.lease_id = lease_id; + params.lease_id = this->lease_id; params.lease_stub = leaseServiceStub.get(); call.reset(new etcdv3::AsyncLeaseKeepAliveAction(params));