fix: formatting of tx.send()

This commit is contained in:
Bart van der Braak 2023-11-08 01:14:01 +01:00
parent cd7f7f59ab
commit 407463d70b

View file

@ -68,7 +68,9 @@ async fn fetch_secrets_from_key_vault(
// Handle the result and send it through the channel
match secret_bundle {
Ok(bundle) => {
tx.send((secret_id, bundle.value)).await.expect("Send error");
tx.send((secret_id, bundle.value))
.await
.expect("Send error");
}
Err(err) => {
eprintln!("Error fetching secret: {}", err);
@ -116,4 +118,4 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Process completed successfully!");
Ok(())
}
}