Browse Source

Make client channels public.

This allows them to be modified to set timeouts
as requested in https://github.com/grpc/grpc-swift/issues/85
Tim Burks 8 năm trước cách đây
mục cha
commit
75e8ec06ab

+ 1 - 1
Examples/Echo/Generated/echo.client.pb.swift

@@ -301,7 +301,7 @@ internal class Echo_EchoUpdateCall {
 
 /// Call methods of this class to make API calls.
 internal class Echo_EchoService {
-  private var channel: Channel
+  public var channel: Channel
 
   /// This metadata will be sent with all requests.
   internal var metadata : Metadata

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
Plugin/Sources/protoc-gen-swiftgrpc/templates.swift


+ 1 - 1
Plugin/Templates/client.pb.swift

@@ -50,7 +50,7 @@ import SwiftProtobuf
 //-{% endfor %}
 /// Call methods of this class to make API calls.
 {{ access }} class {{ .|serviceclass:file,service }} {
-  private var channel: Channel
+  public var channel: Channel
 
   /// This metadata will be sent with all requests.
   {{ access }} var metadata : Metadata

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác