File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1228,17 +1228,23 @@ async fn create_cluster_client(
12281228 } ;
12291229
12301230 println ! ( "CLUSTER TLS DEBUG: Creating fresh TLS params for address {}" , i) ;
1231- Some ( retrieve_tls_certificates ( tls_certs) ?)
1231+ match retrieve_tls_certificates ( tls_certs) {
1232+ Ok ( params) => Some ( params) ,
1233+ Err ( e) => {
1234+ println ! ( "CLUSTER TLS DEBUG: Failed to create TLS params for address {}: {}" , i, e) ;
1235+ return Err ( e) ;
1236+ }
1237+ }
12321238 } else {
12331239 None
12341240 } ;
12351241
1236- get_connection_info (
1242+ Ok ( get_connection_info (
12371243 & address,
12381244 tls_mode,
12391245 valkey_connection_info. clone ( ) ,
12401246 fresh_tls_params,
1241- )
1247+ ) )
12421248 } )
12431249 . collect :: < Result < Vec < _ > , _ > > ( ) ?;
12441250
You can’t perform that action at this time.
0 commit comments