Skip to content

Commit

Permalink
Update examples to use newer google-cloud-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan committed Jul 5, 2023
1 parent 386b296 commit d00d04b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/site/tips_gcp_apis/tips_gcp_apis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pubsub::Publisher GetPublisher(pubsub::Topic topic) {
auto [pos, inserted] = connections.emplace(
topic.FullName(), std::shared_ptr<pubsub::PublisherConnection>());
if (inserted) {
pos->second = pubsub::MakePublisherConnection(std::move(topic), {});
pos->second = pubsub::MakePublisherConnection(std::move(topic));
}
return pubsub::Publisher(pos->second);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ cbt::Table get_table_client(std::string project_id, std::string instance_id,
table->project_id() != project_id) {
table = std::make_unique<cbt::Table>(
cbt::CreateDefaultDataClient(std::move(project_id),
std::move(instance_id),
cbt::ClientOptions{}),
std::move(instance_id)),
table_id);
}
return *table;
Expand Down

0 comments on commit d00d04b

Please sign in to comment.