Selaa lähdekoodia

Fix invalid paths in Plugin/Templates

Tim Burks 8 vuotta sitten
vanhempi
commit
2423458b61

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
Plugin/Sources/protoc-gen-swiftgrpc/templates.swift


+ 1 - 1
Plugin/Templates/client-call-bidistreaming.swift

@@ -51,7 +51,7 @@ public class {{ .|call:file,service,method }} {
   }
 
   /// Call this to send each message in the request stream.
-  public func send(_ message:Echo_EchoRequest, errorHandler:@escaping (Error)->()) throws {
+  public func send(_ message:{{ method|input }}, errorHandler:@escaping (Error)->()) throws {
     let messageData = try message.serializedData()
     try call.sendMessage(data:messageData, errorHandler:errorHandler)
   }

+ 1 - 1
Plugin/Templates/client-call-clientstreaming.swift

@@ -15,7 +15,7 @@ public class {{ .|call:file,service,method }} {
   }
 
   /// Call this to send each message in the request stream. Nonblocking.
-  public func send(_ message:Echo_EchoRequest, errorHandler:@escaping (Error)->()) throws {
+  public func send(_ message:{{ method|input }}, errorHandler:@escaping (Error)->()) throws {
     let messageData = try message.serializedData()
     try call.sendMessage(data:messageData, errorHandler:errorHandler)
   }

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä