|
|
@@ -49,20 +49,20 @@ open class ServiceClientBase: ServiceClient {
|
|
|
}
|
|
|
|
|
|
/// Create a client.
|
|
|
- public init(address: String, secure: Bool = true, arguments: [Channel.Argument] = []) {
|
|
|
+ required public init(address: String, secure: Bool = true, arguments: [Channel.Argument] = []) {
|
|
|
gRPC.initialize()
|
|
|
channel = Channel(address: address, secure: secure, arguments: arguments)
|
|
|
metadata = Metadata()
|
|
|
}
|
|
|
|
|
|
/// Create a client using a pre-defined channel.
|
|
|
- public init(channel: Channel) {
|
|
|
+ required public init(channel: Channel) {
|
|
|
self.channel = channel
|
|
|
metadata = Metadata()
|
|
|
}
|
|
|
|
|
|
/// Create a client that makes secure connections with a custom certificate.
|
|
|
- public init(address: String, certificates: String, arguments: [Channel.Argument] = []) {
|
|
|
+ required public init(address: String, certificates: String, arguments: [Channel.Argument] = []) {
|
|
|
gRPC.initialize()
|
|
|
channel = Channel(address: address, certificates: certificates, arguments: arguments)
|
|
|
metadata = Metadata()
|