Skip to content

Commit cf86a3e

Browse files
committed
resolved review comments
1 parent 8b515f9 commit cf86a3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/storage/async/object_descriptor_connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ObjectDescriptorConnection {
6868
* A descriptor is open if it has not been cancelled and has not hit a
6969
* permanent failure.
7070
*/
71-
virtual bool IsOpen() const { return true; }
71+
virtual bool IsOpen() const = 0;
7272
};
7373

7474
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END

google/cloud/storage/internal/async/object_descriptor_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void ObjectDescriptorImpl::Start(
6666

6767
bool ObjectDescriptorImpl::IsOpen() const {
6868
{
69-
std::unique_lock<std::mutex> lk(mu_);
69+
std::scoped_lock<std::mutex> lk(mu_);
7070
if (cancelled_) return false;
7171
if (stream_manager_->Empty()) return false;
7272
}

0 commit comments

Comments
 (0)