FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Configure the client context using the RPC policies. by coryan · Pull Request #63 · googleapis/google-cloud-cpp · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cc  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions bigtable/client/data.cc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ void Table::Apply(SingleRowMutation&& mut) {

btproto::MutateRowResponse response;
while (true) {
// TODO(coryan) - the RPCRetryPolicy should configure the context.
// TODO(coryan) - consider renaming the policy to RPCControlPolicy.
grpc::ClientContext client_context;
retry_policy->setup(client_context);
backoff_policy->setup(client_context);
grpc::Status status =
client_->Stub().MutateRow(&client_context, request, &response);
if (status.ok()) {
Expand Down

Back | FazBrowse Home | New Git URL