Skip to content

Commit

Permalink
Disabling cl_audits (#73)
Browse files Browse the repository at this point in the history
Temporarily disabling cl audits.
  • Loading branch information
linuskendall authored Jun 2, 2023
1 parent 06e728e commit 109a45a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nft_ingester/src/program_transformers/bubblegum/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ where
..Default::default()
};

let mut audit_item: cl_audits::ActiveModel = item.clone().into();
audit_item.tx = Set(txn_id.to_string());
//let mut audit_item: cl_audits::ActiveModel = item.clone().into();
//audit_item.tx = Set(txn_id.to_string());

i += 1;
let mut query = cl_items::Entity::insert(item)
Expand All @@ -89,7 +89,8 @@ where
.map_err(|db_err| IngesterError::StorageWriteError(db_err.to_string()))?;

// Insert the audit item after the insert into cl_items have been completed
cl_audits::Entity::insert(audit_item).exec(txn).await?;
// Disabling cl_audits for now
//cl_audits::Entity::insert(audit_item).exec(txn).await?;
}

// If and only if the entire path of nodes was inserted into the `cl_items` table, then insert
Expand Down

0 comments on commit 109a45a

Please sign in to comment.