fix: Use anyhow::anyhow! instead of .into() for error type
All checks were successful
BotServer CI/CD / build (push) Successful in 4m19s
All checks were successful
BotServer CI/CD / build (push) Successful in 4m19s
This commit is contained in:
parent
0d3cfbe0f7
commit
c05e40d35b
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ impl AuthConfig {
|
||||||
let result = if let Ok(rt) = rt {
|
let result = if let Ok(rt) = rt {
|
||||||
rt.block_on(async { sm.get_secret(crate::core::secrets::SecretPaths::JWT).await })
|
rt.block_on(async { sm.get_secret(crate::core::secrets::SecretPaths::JWT).await })
|
||||||
} else {
|
} else {
|
||||||
Err("Failed to create runtime".into())
|
Err(anyhow::anyhow!("Failed to create runtime"))
|
||||||
};
|
};
|
||||||
let _ = tx.send(result);
|
let _ = tx.send(result);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue