Skip to content

Commit

Permalink
fix: save_outcomes_and_receipts feature
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Aug 9, 2024
1 parent ed0ec71 commit f565dd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tx-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ near-jsonrpc-client.workspace = true
near-lake-framework.workspace = true

[features]
default = ["save_receipts_outcomes"]
default = ["save_outcomes_and_receipts"]
# this feature enables storing receipt and outcome data to DB
save_receipts_outcomes = []
save_outcomes_and_receipts = []
tracing-instrumentation = ["configuration/tracing-instrumentation"]
2 changes: 1 addition & 1 deletion tx-indexer/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub(crate) async fn index_transactions(
let save_outcomes_and_receipts_future = {
#[cfg(feature = "save_outcomes_and_receipts")]
{
save_outcomes_and_receipts(db_manager, tx_collecting_storage);
save_outcomes_and_receipts(db_manager, tx_collecting_storage)
}
#[cfg(not(feature = "save_outcomes_and_receipts"))]
{
Expand Down

0 comments on commit f565dd1

Please sign in to comment.