[#127] set timeout for keeplive grpc
This commit is contained in:
parent
14d2450e11
commit
01ac6b4685
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue