Skip to content

Commit 48ba72d

Browse files
committed
restore some metrics
1 parent 40cd80a commit 48ba72d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bin/sys-lend.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,21 +1499,23 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
14991499
println!("Transaction confirmed: {signature}");
15001500

15011501
if let Some((deposit_pool, deposit_amount)) = operation_info.deposit_pool_and_amount {
1502-
dp::principal_balance_change(
1502+
metrics::push(dp::principal_balance_change(
15031503
&deposit_pool,
15041504
&address,
15051505
maybe_token,
15061506
token.ui_amount(deposit_amount),
1507-
);
1507+
))
1508+
.await;
15081509
}
15091510
if let Some((withdraw_pool, withdraw_amount)) = operation_info.withdraw_pool_and_amount
15101511
{
1511-
dp::principal_balance_change(
1512+
metrics::push(dp::principal_balance_change(
15121513
&withdraw_pool,
15131514
&address,
15141515
maybe_token,
15151516
-token.ui_amount(withdraw_amount),
1516-
);
1517+
))
1518+
.await;
15171519
}
15181520
notifier
15191521
.send(&format!("{} via via {signature}", operation_info.op_msg))

0 commit comments

Comments
 (0)