We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1e6ea2 commit 4800358Copy full SHA for 4800358
2 files changed
google/cloud/storage/internal/async/object_descriptor_impl.cc
@@ -59,7 +59,8 @@ void ObjectDescriptorImpl::Cancel() {
59
}
60
61
62
-void ObjectDescriptorImpl::CancelStream(std::shared_ptr<OpenStream> stream) {
+void ObjectDescriptorImpl::CancelStream(
63
+ std::shared_ptr<OpenStream> const& stream) {
64
stream->Cancel();
65
66
google/cloud/storage/internal/async/object_descriptor_impl.h
@@ -92,7 +92,7 @@ class ObjectDescriptorImpl
92
return streams_[active_stream_];
93
94
95
- static void CancelStream(std::shared_ptr<OpenStream> stream);
+ static void CancelStream(std::shared_ptr<OpenStream> const& stream);
96
void Flush(std::unique_lock<std::mutex> lk);
97
void OnWrite(bool ok);
98
void DoRead(std::unique_lock<std::mutex>);
0 commit comments