@@ -27,30 +27,30 @@ open class ServiceServer {
2727 fileprivate let servicesByName : [ String : ServiceProvider ]
2828
2929 /// Create a server that accepts insecure connections.
30- public init ( address: String , services : [ ServiceProvider ] ) {
30+ public init ( address: String , serviceProviders : [ ServiceProvider ] ) {
3131 gRPC. initialize ( )
3232 self . address = address
3333 server = Server ( address: address)
34- servicesByName = Dictionary ( uniqueKeysWithValues: services . map { ( $0. serviceName, $0) } )
34+ servicesByName = Dictionary ( uniqueKeysWithValues: serviceProviders . map { ( $0. serviceName, $0) } )
3535 }
3636
3737 /// Create a server that accepts secure connections.
38- public init ( address: String , certificateString: String , keyString: String , services : [ ServiceProvider ] ) {
38+ public init ( address: String , certificateString: String , keyString: String , serviceProviders : [ ServiceProvider ] ) {
3939 gRPC. initialize ( )
4040 self . address = address
4141 server = Server ( address: address, key: keyString, certs: certificateString)
42- servicesByName = Dictionary ( uniqueKeysWithValues: services . map { ( $0. serviceName, $0) } )
42+ servicesByName = Dictionary ( uniqueKeysWithValues: serviceProviders . map { ( $0. serviceName, $0) } )
4343 }
4444
4545 /// Create a server that accepts secure connections.
46- public init ? ( address: String , certificateURL: URL , keyURL: URL , services : [ ServiceProvider ] ) {
46+ public init ? ( address: String , certificateURL: URL , keyURL: URL , serviceProviders : [ ServiceProvider ] ) {
4747 guard let certificate = try ? String ( contentsOf: certificateURL, encoding: . utf8) ,
4848 let key = try ? String ( contentsOf: keyURL, encoding: . utf8)
4949 else { return nil }
5050 gRPC. initialize ( )
5151 self . address = address
5252 server = Server ( address: address, key: key, certs: certificate)
53- servicesByName = Dictionary ( uniqueKeysWithValues: services . map { ( $0. serviceName, $0) } )
53+ servicesByName = Dictionary ( uniqueKeysWithValues: serviceProviders . map { ( $0. serviceName, $0) } )
5454 }
5555
5656 /// Start the server.
0 commit comments