service-mango-health: fix format
This commit is contained in:
parent
a06801db5c
commit
5629017a8a
|
@ -156,12 +156,8 @@ impl HealthProcessor {
|
||||||
account: &Pubkey,
|
account: &Pubkey,
|
||||||
) -> anyhow::Result<HealthComponentValue> {
|
) -> anyhow::Result<HealthComponentValue> {
|
||||||
let mango_account = account_fetcher.fetch_mango_account(account)?;
|
let mango_account = account_fetcher.fetch_mango_account(account)?;
|
||||||
let health_cache = health_cache::new(
|
let health_cache =
|
||||||
&mango_group_context,
|
health_cache::new(&mango_group_context, &*account_fetcher, &mango_account).await?;
|
||||||
&*account_fetcher,
|
|
||||||
&mango_account,
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
let res = HealthComponentValue {
|
let res = HealthComponentValue {
|
||||||
maintenance_ratio: health_cache.health_ratio(HealthType::Maint).to_num(),
|
maintenance_ratio: health_cache.health_ratio(HealthType::Maint).to_num(),
|
||||||
|
|
Loading…
Reference in New Issue