Skip to content

Commit df9b141

Browse files
committed
use RPC in uppercase in function names
1 parent 2d9c60b commit df9b141

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/protoc-gen-grpc-swift/Generator-Client+AsyncAwait.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ extension Generator {
9595
self.method = method
9696

9797
let rpcType = streamingType(self.method)
98-
printRpcFunctionImplementation(rpcType: rpcType)
99-
printRpcFunctionWrapper(rpcType: rpcType)
98+
printRPCFunctionImplementation(rpcType: rpcType)
99+
printRPCFunctionWrapper(rpcType: rpcType)
100100
}
101101
}
102102
}
103103

104-
private func printRpcFunctionImplementation(rpcType: StreamingType) {
104+
private func printRPCFunctionImplementation(rpcType: StreamingType) {
105105
let argumentsBuilder: (() -> Void)?
106106
switch rpcType {
107107
case .unary, .serverStreaming:
@@ -112,7 +112,7 @@ extension Generator {
112112
argumentsBuilder = nil
113113
}
114114
let callTypeWithoutPrefix = Types.call(for: rpcType, withGRPCPrefix: false)
115-
printRpcFunction(rpcType: rpcType, name: self.methodMakeFunctionCallName) {
115+
printRPCFunction(rpcType: rpcType, name: self.methodMakeFunctionCallName) {
116116
self.withIndentation("return self.make\(callTypeWithoutPrefix)", braces: .round) {
117117
self.println("path: \(self.methodPathUsingClientMetadata),")
118118
argumentsBuilder?()
@@ -124,7 +124,7 @@ extension Generator {
124124
}
125125
}
126126

127-
private func printRpcFunctionWrapper(rpcType: StreamingType) {
127+
private func printRPCFunctionWrapper(rpcType: StreamingType) {
128128
let functionName = methodMakeFunctionCallName
129129
let functionWrapperName = methodMakeFunctionCallWrapperName
130130
guard functionName != functionWrapperName else { return }
@@ -139,15 +139,15 @@ extension Generator {
139139
default:
140140
argumentsBuilder = nil
141141
}
142-
printRpcFunction(rpcType: rpcType, name: functionWrapperName) {
142+
printRPCFunction(rpcType: rpcType, name: functionWrapperName) {
143143
self.withIndentation("return self.\(functionName)", braces: .round) {
144144
argumentsBuilder?()
145145
self.println("callOptions: callOptions")
146146
}
147147
}
148148
}
149149

150-
private func printRpcFunction(rpcType: StreamingType, name: String, bodyBuilder: (() -> Void)?) {
150+
private func printRPCFunction(rpcType: StreamingType, name: String, bodyBuilder: (() -> Void)?) {
151151
let callType = Types.call(for: rpcType)
152152
self.printFunction(
153153
name: name,

0 commit comments

Comments
 (0)