Browse Source

Fix typo in UnaryRequestChannelHandler (#512)

Motivation:

UnaryRequestChannelHandler was misspelled.

Modifications:

Rename UnaryRequestChnnelHandler to UnaryRequestChannelHandler.

Result:

Fewer typos.
George Barnett 6 years ago
parent
commit
5cf2899659

+ 1 - 1
Sources/GRPC/ClientCalls/ServerStreamingCall.swift

@@ -32,7 +32,7 @@ public final class ServerStreamingCall<RequestMessage: Message, ResponseMessage:
       timeout: callOptions.timeout,
       responseHandler: handler)
 
-    let requestHandler = UnaryRequestChnnelHandler<RequestMessage>(
+    let requestHandler = UnaryRequestChannelHandler<RequestMessage>(
       requestHead: makeRequestHead(path: path, host: connection.configuration.target.host, callOptions: callOptions),
       request: _Box(request))
 

+ 1 - 1
Sources/GRPC/ClientCalls/UnaryCall.swift

@@ -39,7 +39,7 @@ public final class UnaryCall<RequestMessage: Message, ResponseMessage: Message>
       errorDelegate: errorDelegate,
       timeout: callOptions.timeout)
 
-    let requestHandler = UnaryRequestChnnelHandler<RequestMessage>(
+    let requestHandler = UnaryRequestChannelHandler<RequestMessage>(
       requestHead: makeRequestHead(path: path, host: connection.configuration.target.host, callOptions: callOptions),
       request: _Box(request))
 

+ 1 - 1
Sources/GRPC/ClientRequestChannelHandler.swift

@@ -39,7 +39,7 @@ internal class ClientRequestChannelHandler<RequestMessage: Message>: ChannelInbo
 /// A channel handler for unary client requests.
 ///
 /// Sends the request head, message and end on `channelActive(context:)`.
-internal final class UnaryRequestChnnelHandler<RequestMessage: Message>: ClientRequestChannelHandler<RequestMessage> {
+internal final class UnaryRequestChannelHandler<RequestMessage: Message>: ClientRequestChannelHandler<RequestMessage> {
   /// The request to send.
   internal let request: _Box<RequestMessage>