No timeout for leaserevoke.

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2022-05-23 10:41:48 +08:00
parent e5f1167c69
commit 593d770b4b
1 changed files with 8 additions and 1 deletions

View File

@ -898,7 +898,14 @@ std::shared_ptr<etcdv3::AsyncLeaseRevokeAction> etcd::SyncClient::leaserevoke_in
etcdv3::ActionParameters params;
params.lease_id = lease_id;
params.auth_token.assign(this->token_authenticator->renew_if_expired());
params.grpc_timeout = this->grpc_timeout;
// leaserevoke: no timeout
//
// leaserevoke is special, as it calls `Finish()` inside the constructor, the timeout may
// trigger a "SIGABRT" error on Mac
//
// https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/runs/6544444692?check_suite_focus=true
//
// params.grpc_timeout = this->grpc_timeout;
params.lease_stub = stubs->leaseServiceStub.get();
return std::make_shared<etcdv3::AsyncLeaseRevokeAction>(std::move(params));
}