From 01ac6b4685ecfc4c34c4d7bd15c4d4d511dd5dc4 Mon Sep 17 00:00:00 2001 From: "cheng.li" Date: Mon, 2 May 2022 18:00:23 +0800 Subject: [PATCH] [#127] set timeout for keeplive grpc --- src/v3/AsyncLeaseAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v3/AsyncLeaseAction.cpp b/src/v3/AsyncLeaseAction.cpp index 2ac604c..6752a6b 100644 --- a/src/v3/AsyncLeaseAction.cpp +++ b/src/v3/AsyncLeaseAction.cpp @@ -120,7 +120,7 @@ etcd::Response etcdv3::AsyncLeaseKeepAliveAction::Refresh(int ttl) ok && got_tag == (void *)etcdv3::KEEPALIVE_READ) { auto resp = ParseResponse(); auto duration = std::chrono::duration_cast( - std::chrono::high_resolution_clock::now() - start_timepoint); + std::chrono::high_resolution_clock::now() - start_timepoint); return etcd::Response(resp, duration); } }