Fix panic in record() (#31978)

This commit is contained in:
carllin 2023-06-07 18:40:46 -04:00 committed by GitHub
parent 8596e00549
commit ce1685f80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -183,6 +183,13 @@ impl TransactionRecorder {
starting_transaction_index: None,
};
}
Err(PohRecorderError::SendError(e)) => {
return RecordTransactionsSummary {
record_transactions_timings,
result: Err(PohRecorderError::SendError(e)),
starting_transaction_index: None,
};
}
Err(e) => panic!("Poh recorder returned unexpected error: {e:?}"),
}
}