Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Dec 17, 2024
1 parent b64ef25 commit 3e93719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Processor for CoinBalanceBucketsPruner {
.into_iter()
.map(|o| (o.id(), o))
.collect();
let mut values = Vec::with_capacity(checkpoint_input_objects.len());
let mut values = Vec::new();
for (object_id, input_object) in checkpoint_input_objects {
// This loop processes all coins that were owned by a single address prior to the checkpoint,
// but is now deleted/wrapped, or changed owner or coin balance bucket the checkpoint.
Expand Down Expand Up @@ -103,5 +103,7 @@ impl Handler for CoinBalanceBucketsPruner {
}

impl FieldCount for CoinBalanceBucketToBePruned {
// This does not really matter since we are not limited by postgres' bound variable limit, because
// we don't bind parameters in the deletion statement.
const FIELD_COUNT: usize = 1;
}
3 changes: 2 additions & 1 deletion crates/sui-indexer-alt/src/handlers/obj_info_pruner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ impl Handler for ObjInfoPruner {
}

impl FieldCount for ObjInfoToBePruned {
// This does not really matter since we are deleting, and we are not limited by the insertion limit.
// This does not really matter since we are not limited by postgres' bound variable limit, because
// we don't bind parameters in the deletion statement.
const FIELD_COUNT: usize = 1;
}

0 comments on commit 3e93719

Please sign in to comment.