mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Move rpc deadline setting up to client.
PiperOrigin-RevId: 885770162
This commit is contained in:
committed by
Copybara-Service
parent
86dde4cd78
commit
9c3523cf6c
@@ -336,7 +336,7 @@ void NearbyShareCertificateManagerImpl::CertificateDownloadContext::
|
||||
request.set_page_token(*next_page_token_);
|
||||
}
|
||||
nearby_identity_client_->QuerySharedCredentials(
|
||||
std::move(request),
|
||||
std::move(request), api::IdentityRpcClient::kTimeout,
|
||||
[this](const absl::StatusOr<QuerySharedCredentialsResponse>&
|
||||
response) mutable {
|
||||
if (!response.ok()) {
|
||||
@@ -545,7 +545,7 @@ bool NearbyShareCertificateManagerImpl::UploadDeviceCertificatesInExecutor(
|
||||
bool regenerate_certificates = false;
|
||||
absl::Notification notification;
|
||||
nearby_identity_client_->PublishDevice(
|
||||
std::move(request),
|
||||
std::move(request), api::IdentityRpcClient::kTimeout,
|
||||
[&upload_certificates_succeeded, ®enerate_certificates,
|
||||
¬ification](const absl::StatusOr<PublishDeviceResponse>& response) {
|
||||
upload_certificates_succeeded = response.ok();
|
||||
@@ -877,7 +877,7 @@ bool NearbyShareCertificateManagerImpl::UpdateAccountInfoInExecutor() {
|
||||
bool get_account_info_succeeded = false;
|
||||
absl::Notification notification;
|
||||
nearby_identity_client_->GetAccountInfo(
|
||||
std::move(request),
|
||||
std::move(request), api::IdentityRpcClient::kTimeout,
|
||||
[this, &get_account_info_succeeded, ¬ification](
|
||||
const absl::StatusOr<GetAccountInfoResponse>& response) mutable {
|
||||
if (!response.ok()) {
|
||||
|
||||
Reference in New Issue
Block a user