summaryrefslogtreecommitdiff
path: root/grpc/src
diff options
context:
space:
mode:
authormustiikhalil <mustii@mmk.one>2020-06-04 19:14:18 +0300
committerGitHub <noreply@github.com>2020-06-04 09:14:18 -0700
commit666800da3644e75b3dc0cdc56402f104fe201655 (patch)
tree50c6ed51b39fcba2a9cde8b2188f0d21f22f4949 /grpc/src
parent38ed69eb3dc339b6ffb963081aecc4f1dc4acb83 (diff)
downloadflatbuffers-666800da3644e75b3dc0cdc56402f104fe201655.tar.gz
flatbuffers-666800da3644e75b3dc0cdc56402f104fe201655.tar.bz2
flatbuffers-666800da3644e75b3dc0cdc56402f104fe201655.zip
Adds bool support in structs + updates grpc support + CI upgrades (#5943)
Diffstat (limited to 'grpc/src')
-rw-r--r--grpc/src/compiler/swift_generator.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/grpc/src/compiler/swift_generator.cc b/grpc/src/compiler/swift_generator.cc
index 0a25f6e3..7aa29ac1 100644
--- a/grpc/src/compiler/swift_generator.cc
+++ b/grpc/src/compiler/swift_generator.cc
@@ -178,10 +178,7 @@ grpc::string GenerateServerExtensionBody(const grpc_generator::Method *method) {
"return ClientStreamingCallHandler(callHandlerContext: "
"callHandlerContext) { context in"
"\n\t\t\t"
- "return { request in"
- "\n\t\t\t\t"
- "self.$MethodName$(request: request, context: context)"
- "\n\t\t\t}"
+ "self.$MethodName$(context: context)"
"\n\t\t}";
}
if (method->ServerStreaming()) {
@@ -200,10 +197,7 @@ grpc::string GenerateServerExtensionBody(const grpc_generator::Method *method) {
"return BidirectionalStreamingCallHandler(callHandlerContext: "
"callHandlerContext) { context in"
"\n\t\t\t"
- "return { request in"
- "\n\t\t\t\t"
- "self.$MethodName$(request: request, context: context)"
- "\n\t\t\t}"
+ "self.$MethodName$(context: context)"
"\n\t\t}";
}
return "";