Skip to content

Commit

Permalink
fix num of fields const
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Feb 7, 2024
1 parent 3f1e6d3 commit e76c8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iot_verifier/src/last_witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl LastWitness {
db: impl sqlx::PgExecutor<'_> + sqlx::Acquire<'_, Database = sqlx::Postgres> + Copy,
ids: Vec<(PublicKeyBinary, DateTime<Utc>)>,
) -> anyhow::Result<()> {
const NUMBER_OF_FIELDS_IN_QUERY: u16 = 4;
const NUMBER_OF_FIELDS_IN_QUERY: u16 = 2;
const MAX_BATCH_ENTRIES: usize = (u16::MAX / NUMBER_OF_FIELDS_IN_QUERY) as usize;
let mut txn = db.begin().await?;
for updates in ids.chunks(MAX_BATCH_ENTRIES) {
Expand Down

0 comments on commit e76c8b9

Please sign in to comment.