Browse Source

Make access control of Channel more strict

takasek 7 years ago
parent
commit
248f125b4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Plugin/Templates/client.swift

+ 1 - 1
Plugin/Templates/client.swift

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