Skip to content

Commit

Permalink
Don't process TCN batch if empty (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivnsch authored Aug 2, 2020
1 parent 1bdad3a commit 6f6b2e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tcn_recording/tcn_batches_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ where
clone
};

if tcns.is_empty() {
return Ok(());
};

debug!("Flushing TCN batch into database: {:?}", tcns);

// Do an in-memory merge with the DB TCNs and overwrite stored exposures with result.
Expand Down

0 comments on commit 6f6b2e8

Please sign in to comment.