Skip to content

Commit ce75107

Browse files
authored
fix(storage): Fix the compilation error of samples code (#15589)
* fix(storage): Fix the compilation error of samples code * fix the format
1 parent 6676f72 commit ce75107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/storage/examples/storage_async_samples.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ void CreateAndWriteAppendableObject(
717717
gcs_ex::BucketName(std::move(bucket_name)),
718718
std::move(object_name)))
719719
.value();
720-
std::cout << "Appendable upload started for object " << object_name "\n";
720+
std::cout << "Appendable upload started for object " << object_name << "\n";
721721

722722
token = (co_await writer.Write(std::move(token),
723723
gcs_ex::WritePayload("Some data\n")))
@@ -882,7 +882,7 @@ void ReadAppendableObjectTail(
882882
bytes_read += buffer.size();
883883
}
884884
// In a real application you would wait here, e.g. with a timer.
885-
co_await google::cloud::sleep_for(std::chrono::seconds(1));
885+
std::this_thread::sleep_for(std::chrono::seconds(1));
886886
}
887887
};
888888
// [END storage_read_appendable_object_tail]

0 commit comments

Comments
 (0)