Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed Mar 28, 2024
1 parent 1523216 commit 4596c6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions program/rust/src/processor/upd_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,11 @@ pub fn upd_price(
// will send the message.
price_data.message_sent_ = 0;
}
// Encapsulate TWAP update logic in a function to minimize unsafe block scope.
unsafe {
c_upd_twap(price_account.try_borrow_mut_data()?.as_mut_ptr(), agg_diff);
}
}


// Reload price data as a struct after c_upd_aggregate() borrow is dropped
let mut price_data = load_checked::<PriceAccount>(price_account, cmd_args.header.version)?;

Expand Down

0 comments on commit 4596c6e

Please sign in to comment.