mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-27 14:51:21 +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
|
||||
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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue