aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/codegen/sync_stream.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-08-30 10:26:30 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-08-30 10:26:30 -0700
commit77073ce99fae96f736d5df033c581ad6a1bc6804 (patch)
treee878b153fdd26874051d3fec440bbbdc4dc8396c /include/grpc++/impl/codegen/sync_stream.h
parent45c6d5ca641960a813b96d5acb40aa9038e1243a (diff)
clang-format
Diffstat (limited to 'include/grpc++/impl/codegen/sync_stream.h')
-rw-r--r--include/grpc++/impl/codegen/sync_stream.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/grpc++/impl/codegen/sync_stream.h b/include/grpc++/impl/codegen/sync_stream.h
index 5c775ec957..e1d4660ae7 100644
--- a/include/grpc++/impl/codegen/sync_stream.h
+++ b/include/grpc++/impl/codegen/sync_stream.h
@@ -457,7 +457,8 @@ namespace internal {
template <class W, class R>
class ServerReaderWriterBody GRPC_FINAL {
public:
- ServerReaderWriterBody(Call* call, ServerContext* ctx) : call_(call), ctx_(ctx) {}
+ ServerReaderWriterBody(Call* call, ServerContext* ctx)
+ : call_(call), ctx_(ctx) {}
void SendInitialMetadata() {
GPR_CODEGEN_ASSERT(!ctx_->sent_initial_metadata_);
@@ -512,8 +513,7 @@ class ServerReaderWriterBody GRPC_FINAL {
template <class W, class R>
class ServerReaderWriter GRPC_FINAL : public ServerReaderWriterInterface<W, R> {
public:
- ServerReaderWriter(Call* call, ServerContext* ctx)
- : body_(call, ctx) {}
+ ServerReaderWriter(Call* call, ServerContext* ctx) : body_(call, ctx) {}
void SendInitialMetadata() GRPC_OVERRIDE { body_.SendInitialMetadata(); }
@@ -527,9 +527,9 @@ class ServerReaderWriter GRPC_FINAL : public ServerReaderWriterInterface<W, R> {
bool Write(const W& msg, const WriteOptions& options) GRPC_OVERRIDE {
return body_.Write(msg, options);
}
-
+
private:
- internal::ServerReaderWriterBody<W,R> body_;
+ internal::ServerReaderWriterBody<W, R> body_;
};
/// A class to represent a flow-controlled unary call. This is something
@@ -573,7 +573,7 @@ class ServerUnaryStreamer GRPC_FINAL
}
private:
- internal::ServerReaderWriterBody<ResponseType,RequestType> body_;
+ internal::ServerReaderWriterBody<ResponseType, RequestType> body_;
bool read_done_;
bool write_done_;
};