Skip to content

Commit

Permalink
Ran some proto formater
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Apr 29, 2019
1 parent ffe8e9c commit 9e55051
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions net/grpc/gateway/examples/echo/echo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ syntax = "proto3";

package grpc.gateway.testing;

message Empty {
}
message Empty {}

message EchoRequest {
string message = 1;
Expand Down Expand Up @@ -67,8 +66,7 @@ service EchoService {
rpc Echo(EchoRequest) returns (EchoResponse);

// Sends back abort status.
rpc EchoAbort(EchoRequest) returns (EchoResponse) {
};
rpc EchoAbort(EchoRequest) returns (EchoResponse) {}

// One empty request, ZERO processing, followed by one empty response
// (minimum effort to do message serialization).
Expand All @@ -82,8 +80,7 @@ service EchoService {
// One request followed by a sequence of responses (streamed download).
// The server abort directly.
rpc ServerStreamingEchoAbort(ServerStreamingEchoRequest)
returns (stream ServerStreamingEchoResponse) {
}
returns (stream ServerStreamingEchoResponse) {}

// A sequence of requests followed by one response (streamed upload).
// The server returns the total number of messages as the result.
Expand Down
6 changes: 3 additions & 3 deletions net/grpc/gateway/examples/helloworld/helloworld.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ package helloworld;

service Greeter {
// unary call
rpc SayHello (HelloRequest) returns (HelloReply);
rpc SayHello(HelloRequest) returns (HelloReply);
// server streaming call
rpc SayRepeatHello (RepeatHelloRequest) returns (stream HelloReply);
rpc SayRepeatHello(RepeatHelloRequest) returns (stream HelloReply);
// unary call - response after a length delay
rpc SayHelloAfterDelay (HelloRequest) returns (HelloReply);
rpc SayHelloAfterDelay(HelloRequest) returns (HelloReply);
}

message HelloRequest {
Expand Down

0 comments on commit 9e55051

Please sign in to comment.