mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Format all the files in CL786733783
PiperOrigin-RevId: 786873870
This commit is contained in:
@@ -27,9 +27,9 @@ namespace nearby {
|
||||
|
||||
BlockingQueueStream::BlockingQueueStream() {
|
||||
LOG(INFO) << "Create a BlockingQueueStream with size "
|
||||
<< FeatureFlags::GetInstance()
|
||||
.GetFlags()
|
||||
.blocking_queue_stream_queue_capacity;
|
||||
<< FeatureFlags::GetInstance()
|
||||
.GetFlags()
|
||||
.blocking_queue_stream_queue_capacity;
|
||||
}
|
||||
|
||||
ExceptionOr<ByteArray> BlockingQueueStream::Read(std::int64_t size) {
|
||||
@@ -39,8 +39,7 @@ ExceptionOr<ByteArray> BlockingQueueStream::Read(std::int64_t size) {
|
||||
}
|
||||
|
||||
if (is_closed_) {
|
||||
LOG(INFO)
|
||||
<< "Failed to read BlockingQueueStream because it was closed.";
|
||||
LOG(INFO) << "Failed to read BlockingQueueStream because it was closed.";
|
||||
return ExceptionOr<ByteArray>(Exception::kIo);
|
||||
}
|
||||
|
||||
@@ -67,8 +66,7 @@ void BlockingQueueStream::Write(const ByteArray& bytes) {
|
||||
return;
|
||||
}
|
||||
if (is_closed_) {
|
||||
LOG(INFO)
|
||||
<< "Failed to write BlockingQueueStream because it was closed.";
|
||||
LOG(INFO) << "Failed to write BlockingQueueStream because it was closed.";
|
||||
return;
|
||||
}
|
||||
is_writing_ = true;
|
||||
|
||||
Reference in New Issue
Block a user