Skip to content

Commit

Permalink
style ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alevenberg committed Nov 27, 2023
1 parent 6bd3fab commit 67a238b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pubsub-open-telemetry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ find_package(google_cloud_cpp_opentelemetry CONFIG REQUIRED)

add_executable(quickstart quickstart.cc)
target_compile_features(quickstart PRIVATE cxx_std_14)
target_link_libraries(
quickstart PRIVATE google-cloud-cpp::pubsub google-cloud-cpp::opentelemetry)
target_link_libraries(quickstart PRIVATE google-cloud-cpp::pubsub
google-cloud-cpp::opentelemetry)

5 changes: 2 additions & 3 deletions pubsub-open-telemetry/quickstart.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "google/cloud/status.h"
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <vector>

// Create a few namespace aliases to make the code easier to read.
namespace gc = ::google::cloud;
Expand Down Expand Up @@ -47,8 +47,7 @@ int main(int argc, char* argv[]) try {
.then([](gc::future<gc::StatusOr<std::string>> f) {
auto id = f.get();
if (!id) {
std::cout << "Error in publish: " << id.status()
<< "\n";
std::cout << "Error in publish: " << id.status() << "\n";
return;
}
std::cout << "Sent message with id: (" << *id << ")\n";
Expand Down

0 comments on commit 67a238b

Please sign in to comment.