Skip to content

Commit 8eecba2

Browse files
committed
resolving comments
1 parent 2f7e6fd commit 8eecba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class AsyncWriterConnectionBufferedState
397397
flush_ = false;
398398
// Check if the promise has already been completed.
399399
if (finalized_promise_completed_) {
400-
lk.unlock(); // Release lock before returning
400+
// Since the lock is passed by value, no explicit unlock is needed.
401401
return;
402402
}
403403
// Mark the promise as completed *before* moving it.

0 commit comments

Comments
 (0)