service-mango-health: fix format

This commit is contained in:
Serge Farny 2024-03-01 11:44:06 +01:00
parent a06801db5c
commit 5629017a8a
1 changed files with 2 additions and 6 deletions

View File

@ -156,12 +156,8 @@ impl HealthProcessor {
account: &Pubkey,
) -> anyhow::Result<HealthComponentValue> {
let mango_account = account_fetcher.fetch_mango_account(account)?;
let health_cache = health_cache::new(
&mango_group_context,
&*account_fetcher,
&mango_account,
)
.await?;
let health_cache =
health_cache::new(&mango_group_context, &*account_fetcher, &mango_account).await?;
let res = HealthComponentValue {
maintenance_ratio: health_cache.health_ratio(HealthType::Maint).to_num(),