Skip to content

Commit

Permalink
Merge branch 'grpc-ingest' into triton-build
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Sep 16, 2024
2 parents a6b054c + 4e3c076 commit febc55c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backfill/src/worker/program_transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl ProgramTransformerWorkerArgs {
transactions.push(gap);
}

transactions.sort_by(|(a, _), (b, _)| a.cmp(&b));
transactions.sort_by(|(a, _), (b, _)| a.cmp(b));

for (_, transaction) in transactions {
if let Err(e) = program_transformer.handle_transaction(&transaction).await {
Expand Down
5 changes: 2 additions & 3 deletions program_transformers/src/bubblegum/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ where
..Default::default()
};

let mut query = cl_items::Entity::insert(item)
let query = cl_items::Entity::insert(item)
.on_conflict(
OnConflict::columns([cl_items::Column::Tree, cl_items::Column::NodeIdx])
.update_columns([
Expand All @@ -89,7 +89,6 @@ where
.to_owned(),
)
.build(DbBackend::Postgres);
query.sql = format!("{} WHERE excluded.seq >= cl_items.seq", query.sql);
txn.execute(query)
.await
.map_err(|db_err| ProgramTransformerError::StorageWriteError(db_err.to_string()))?;
Expand Down Expand Up @@ -118,7 +117,7 @@ where
cl_audits_v2::Column::LeafIdx,
cl_audits_v2::Column::Seq,
])
.do_nothing()
.update_columns([cl_audits_v2::Column::Tx, cl_audits_v2::Column::Instruction])
.to_owned(),
)
.build(DbBackend::Postgres);
Expand Down

0 comments on commit febc55c

Please sign in to comment.