Skip to content

Commit

Permalink
Comment on precondition for TxId
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Jan 24, 2023
1 parent 5e8228a commit ca0e1b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query-engine/core/src/interactive_transactions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ where
{
fn from(s: T) -> Self {
let contents = s.into();
// This postcondition is to ensure that the TxId is long enough as to be able to derive
// a TraceId from it.
assert!(
contents.len() >= MINIMUM_TX_ID_LENGTH,
"minimum length for a TxId ({}) is {}, but was {}",
Expand Down

0 comments on commit ca0e1b0

Please sign in to comment.