mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-06-28 04:09:11 +00:00
fix: formatting of tx.send()
This commit is contained in:
parent
cd7f7f59ab
commit
407463d70b
1 changed files with 4 additions and 2 deletions
|
@ -68,7 +68,9 @@ async fn fetch_secrets_from_key_vault(
|
||||||
// Handle the result and send it through the channel
|
// Handle the result and send it through the channel
|
||||||
match secret_bundle {
|
match secret_bundle {
|
||||||
Ok(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) => {
|
Err(err) => {
|
||||||
eprintln!("Error fetching secret: {}", err);
|
eprintln!("Error fetching secret: {}", err);
|
||||||
|
@ -116,4 +118,4 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
println!("Process completed successfully!");
|
println!("Process completed successfully!");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue