diff options
-rw-r--r-- | .clang-format | 1 | ||||
-rw-r--r-- | src/buildtool/execution_api/execution_service/bytestream_server.hpp | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format index c2571773..a1d49bf1 100644 --- a/.clang-format +++ b/.clang-format @@ -1,5 +1,6 @@ --- Language: Cpp +Standard: c++20 BasedOnStyle: Google AccessModifierOffset: -2 AllowAllParametersOfDeclarationOnNextLine: false diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.hpp b/src/buildtool/execution_api/execution_service/bytestream_server.hpp index f4c000f0..69a30713 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.hpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.hpp @@ -27,7 +27,7 @@ class BytestreamServiceImpl : public ::google::bytestream::ByteStream::Service { // responses are delivered as the results of a server-side streaming RPC. auto Read(::grpc::ServerContext* context, const ::google::bytestream::ReadRequest* request, - ::grpc::ServerWriter< ::google::bytestream::ReadResponse>* writer) + ::grpc::ServerWriter<::google::bytestream::ReadResponse>* writer) -> ::grpc::Status override; // `Write()` is used to send the contents of a resource as a sequence of // bytes. The bytes are sent in a sequence of request protos of a @@ -51,10 +51,9 @@ class BytestreamServiceImpl : public ::google::bytestream::ByteStream::Service { // check the `WriteResponse` it receives to determine how much data the // service was able to commit and whether the service views the resource as // `complete` or not. - auto Write( - ::grpc::ServerContext* context, - ::grpc::ServerReader< ::google::bytestream::WriteRequest>* reader, - ::google::bytestream::WriteResponse* response) + auto Write(::grpc::ServerContext* context, + ::grpc::ServerReader<::google::bytestream::WriteRequest>* reader, + ::google::bytestream::WriteResponse* response) -> ::grpc::Status override; // `QueryWriteStatus()` is used to find the `committed_size` for a resource // that is being written, which can then be used as the `write_offset` for |