diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 11:59:11 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 6f03f36201fa79f3802f3235779ec5a451287e21 (patch) | |
tree | 40cd2a46e881be0d5cdbf4de215e8dcedee8ae33 /src/buildtool/execution_api/execution_service/bytestream_server.cpp | |
parent | a054488f8417a40e22c4e1e0f9738f705785aa9e (diff) | |
download | justbuild-6f03f36201fa79f3802f3235779ec5a451287e21.tar.gz |
Name static constants using kCamelCase.
Diffstat (limited to 'src/buildtool/execution_api/execution_service/bytestream_server.cpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/bytestream_server.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.cpp b/src/buildtool/execution_api/execution_service/bytestream_server.cpp index 7d2bd48a..642347cc 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.cpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.cpp @@ -54,9 +54,9 @@ auto BytestreamServiceImpl::Read( auto const lock = GarbageCollector::SharedLock(storage_config_); if (not lock) { - static constexpr auto str = "Could not acquire SharedLock"; - logger_.Emit(LogLevel::Error, "{}", str); - return grpc::Status{grpc::StatusCode::INTERNAL, str}; + static constexpr auto kStr = "Could not acquire SharedLock"; + logger_.Emit(LogLevel::Error, "{}", kStr); + return grpc::Status{grpc::StatusCode::INTERNAL, kStr}; } auto const path = @@ -125,9 +125,9 @@ auto BytestreamServiceImpl::Write( request.finish_write()); auto const lock = GarbageCollector::SharedLock(storage_config_); if (not lock) { - static constexpr auto str = "Could not acquire SharedLock"; - logger_.Emit(LogLevel::Error, "{}", str); - return grpc::Status{grpc::StatusCode::INTERNAL, str}; + static constexpr auto kStr = "Could not acquire SharedLock"; + logger_.Emit(LogLevel::Error, "{}", kStr); + return grpc::Status{grpc::StatusCode::INTERNAL, kStr}; } auto const tmp_dir = storage_config_.CreateTypedTmpDir("execution-service"); if (not tmp_dir) { @@ -166,7 +166,7 @@ auto BytestreamServiceImpl::QueryWriteStatus( const ::google::bytestream::QueryWriteStatusRequest* /*request*/, ::google::bytestream::QueryWriteStatusResponse* /*response*/) -> ::grpc::Status { - static constexpr auto str = "QueryWriteStatus not implemented"; - logger_.Emit(LogLevel::Error, "{}", str); - return ::grpc::Status{grpc::StatusCode::UNIMPLEMENTED, str}; + static constexpr auto kStr = "QueryWriteStatus not implemented"; + logger_.Emit(LogLevel::Error, "{}", kStr); + return ::grpc::Status{grpc::StatusCode::UNIMPLEMENTED, kStr}; } |