Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehamilton committed Jul 19, 2023
1 parent 621aef5 commit 163caeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn spawn_historical_message_thread(
tokio::spawn(process_historical_messages(
block_height,
new_indexer_function_copy,
Opts::parse()
Opts::parse(),
))
})
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

#[cfg(test)]
mod tests {
use std::env;
use crate::historical_block_processing::filter_matching_blocks_from_index_files;
use crate::indexer_types::IndexerFunction;
use crate::opts::{ChainId, Opts, StartOptions};
Expand All @@ -10,6 +8,7 @@ mod tests {
use chrono::{DateTime, NaiveDate, Utc};
use indexer_rule_type::indexer_rule::{IndexerRule, IndexerRuleKind, MatchingRule, Status};
use near_lake_framework::near_indexer_primitives::types::BlockHeight;
use std::env;
use std::ops::Range;

impl Opts {
Expand Down Expand Up @@ -86,7 +85,7 @@ mod tests {
indexer_function,
opts,
)
.await;
.await;
}

/// Parses env vars from .env, Run with
Expand Down Expand Up @@ -120,7 +119,7 @@ mod tests {
aws_config,
datetime_utc,
)
.await;
.await;

// // remove any blocks from after when the test was written -- not working, due to new contracts?
// let fixed_blocks: Vec<BlockHeight> = blocks.into_iter().filter(|&b| b <= 95175853u64).collect(); // 95175853u64 95242647u64
Expand Down Expand Up @@ -158,10 +157,11 @@ mod tests {
aws_config,
datetime_utc,
)
.await;
.await;

// remove any blocks from after when the test was written
let fixed_blocks: Vec<BlockHeight> = blocks.into_iter().filter(|&b| b <= 95175853u64).collect();
let fixed_blocks: Vec<BlockHeight> =
blocks.into_iter().filter(|&b| b <= 95175853u64).collect();
assert_eq!(fixed_blocks.len(), 6); // hackathon.agency.near = 45894627,45898423, hacker.agency.near = 45897358, hack.agency.near = 45894872,45895120,45896237
}
}
}

0 comments on commit 163caeb

Please sign in to comment.