liquidator: do not panic if token or perp rebalancing fails (#927)

This commit is contained in:
Serge Farny 2024-04-01 10:30:49 +02:00 committed by GitHub
parent e3a7ed9e32
commit 0b7e62e671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ impl Rebalancer {
)
}
rebalance_perps_res.expect("rebalancing perps failed");
rebalance_tokens_res.expect("rebalancing tokens failed");
rebalance_perps_res?;
rebalance_tokens_res?;
Ok(())
}