[#127] set timeout for keeplive grpc

This commit is contained in:
cheng.li 2022-05-02 18:00:23 +08:00
parent 14d2450e11
commit 01ac6b4685
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ etcd::Response etcdv3::AsyncLeaseKeepAliveAction::Refresh(int ttl)
ok && got_tag == (void *)etcdv3::KEEPALIVE_READ) { ok && got_tag == (void *)etcdv3::KEEPALIVE_READ) {
auto resp = ParseResponse(); auto resp = ParseResponse();
auto duration = std::chrono::duration_cast<std::chrono::microseconds>( auto duration = std::chrono::duration_cast<std::chrono::microseconds>(
std::chrono::high_resolution_clock::now() - start_timepoint); std::chrono::high_resolution_clock::now() - start_timepoint);
return etcd::Response(resp, duration); return etcd::Response(resp, duration);
} }
} }