Skip to content

Commit 37c9eef

Browse files
committed
Call retrieve_tls_certificates on the copied data
Signed-off-by: James Duong <[email protected]>
1 parent 2d0d9f8 commit 37c9eef

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

glide-core/src/client/mod.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)