diff --git a/Sources/GRPCNIOTransportHTTP2Posix/HTTP2ClientTransport+Posix.swift b/Sources/GRPCNIOTransportHTTP2Posix/HTTP2ClientTransport+Posix.swift index 636d0ce..eda075e 100644 --- a/Sources/GRPCNIOTransportHTTP2Posix/HTTP2ClientTransport+Posix.swift +++ b/Sources/GRPCNIOTransportHTTP2Posix/HTTP2ClientTransport+Posix.swift @@ -186,7 +186,11 @@ extension HTTP2ClientTransport.Posix { } } - return HTTP2Connection(channel: channel, multiplexer: multiplexer, isPlaintext: self.isPlainText) + return HTTP2Connection( + channel: channel, + multiplexer: multiplexer, + isPlaintext: self.isPlainText + ) } } } diff --git a/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ClientTransport+TransportServices.swift b/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ClientTransport+TransportServices.swift index 42494c0..ed9d523 100644 --- a/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ClientTransport+TransportServices.swift +++ b/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ClientTransport+TransportServices.swift @@ -319,9 +319,9 @@ extension NWProtocolTLS.Options { throw RuntimeError( code: .transportError, message: """ - There was an issue creating the SecIdentity required to set up TLS. \ - Please check your TLS configuration. - """ + There was an issue creating the SecIdentity required to set up TLS. \ + Please check your TLS configuration. + """ ) } @@ -390,7 +390,8 @@ extension NWProtocolTLS.Options { fatalError("Certificate format must be DER, but was \(format).") } - guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) else { + guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) + else { fatalError("Certificate was not a valid DER-encoded X509 certificate.") } return certificate diff --git a/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ServerTransport+TransportServices.swift b/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ServerTransport+TransportServices.swift index 491a799..e035a5b 100644 --- a/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ServerTransport+TransportServices.swift +++ b/Sources/GRPCNIOTransportHTTP2TransportServices/HTTP2ServerTransport+TransportServices.swift @@ -302,7 +302,8 @@ extension NWProtocolTLS.Options { fatalError("Certificate format must be DER, but was \(format).") } - guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) else { + guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) + else { fatalError("Certificate was not a valid DER-encoded X509 certificate.") } return certificate