@@ -18,7 +18,7 @@ use crate::listeners::TlsAcceptCallbacks;
1818use crate :: protocols:: tls:: { server:: handshake, server:: handshake_with_callback, TlsStream } ;
1919use log:: debug;
2020use pingora_error:: ErrorType :: InternalError ;
21- use pingora_error:: { Error , OrErr , Result , ErrorType , ErrorSource , RetryType , ImmutStr } ;
21+ use pingora_error:: { Error , ErrorSource , ErrorType , ImmutStr , OrErr , Result , RetryType } ;
2222use pingora_rustls:: load_certs_and_key_files;
2323use pingora_rustls:: ClientCertVerifier ;
2424use pingora_rustls:: ServerConfig ;
@@ -53,15 +53,16 @@ impl TlsSettings {
5353 let Ok ( Some ( ( certs, key) ) ) = load_certs_and_key_files ( & self . cert_path , & self . key_path )
5454 else {
5555 let error_message = format ! (
56- "Failed to load provided certificates \" {}\" or key \" {}\" ." ,
57- self . cert_path, self . key_path) ;
56+ "Failed to load provided certificates \" {}\" or key \" {}\" ." ,
57+ self . cert_path, self . key_path
58+ ) ;
5859
5960 return Err ( Box :: new ( Error {
6061 etype : ErrorType :: InternalError ,
61- esource : ErrorSource :: Internal ,
62- retry : RetryType :: Decided ( false ) ,
62+ esource : ErrorSource :: Internal ,
63+ retry : RetryType :: Decided ( false ) ,
6364 cause : None ,
64- context : Some ( ImmutStr :: Owned ( error_message. into_boxed_str ( ) ) )
65+ context : Some ( ImmutStr :: Owned ( error_message. into_boxed_str ( ) ) ) ,
6566 } ) ) ;
6667 } ;
6768
0 commit comments