Use saturating_add_assign macro
This commit is contained in:
committed by
Trent Nelson
parent
deb9344e49
commit
72fc6096a0
@@ -16,6 +16,7 @@ use {
|
||||
precompiles::is_precompile,
|
||||
pubkey::Pubkey,
|
||||
rent::Rent,
|
||||
saturating_add_assign,
|
||||
sysvar::instructions,
|
||||
transaction::TransactionError,
|
||||
transaction_context::{InstructionAccount, TransactionContext},
|
||||
@@ -144,7 +145,10 @@ impl MessageProcessor {
|
||||
result.is_err(),
|
||||
);
|
||||
timings.details.accumulate(&invoke_context.timings);
|
||||
timings.execute_accessories.process_instructions_us += time.as_us();
|
||||
saturating_add_assign!(
|
||||
timings.execute_accessories.process_instructions_us,
|
||||
time.as_us()
|
||||
);
|
||||
result
|
||||
.map_err(|err| TransactionError::InstructionError(instruction_index as u8, err))?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user