Skip to content

Commit

Permalink
fix: cargo check
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Aug 9, 2024
1 parent 6d04ab7 commit ed0ec71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions logic-state-indexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ struct ShardedStateChangesWithCause {
pub async fn handle_streamer_message(
streamer_message: near_indexer_primitives::StreamerMessage,
db_manager: &(impl database::StateIndexerDbManager + Sync + Send + 'static),
near_client: &impl NearClient,
indexer_config: impl configuration::RightsizingConfig + configuration::IndexerConfig,
near_client: &(impl NearClient + std::fmt::Debug),
indexer_config: impl configuration::RightsizingConfig
+ configuration::IndexerConfig
+ std::fmt::Debug,
stats: std::sync::Arc<tokio::sync::RwLock<metrics::Stats>>,
shard_layout: &near_primitives::shard_layout::ShardLayout,
) -> anyhow::Result<()> {
Expand Down Expand Up @@ -348,7 +350,7 @@ async fn handle_epoch(
stats_current_epoch_height: u64,
current_epoch_id: CryptoHash,
next_epoch_id: CryptoHash,
near_client: &impl NearClient,
near_client: &(impl NearClient + std::fmt::Debug),
db_manager: &(impl database::StateIndexerDbManager + Sync + Send + 'static),
) -> anyhow::Result<()> {
if let Some(stats_epoch_id) = stats_current_epoch_id {
Expand Down Expand Up @@ -383,7 +385,7 @@ async fn handle_state_changes(
db_manager: &(impl database::StateIndexerDbManager + Sync + Send + 'static),
block_height: u64,
block_hash: CryptoHash,
indexer_config: &impl configuration::RightsizingConfig,
indexer_config: &(impl configuration::RightsizingConfig + std::fmt::Debug),
shard_layout: &near_primitives::shard_layout::ShardLayout,
) -> anyhow::Result<()> {
let mut state_changes_to_store = StateChangesToStore {
Expand Down
2 changes: 1 addition & 1 deletion near-state-indexer/src/near_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use actix::Addr;
use near_indexer::near_primitives;
use near_o11y::WithSpanContextExt;

#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct NearViewClient {
view_client: Addr<near_client::ViewClientActor>,
}
Expand Down

0 comments on commit ed0ec71

Please sign in to comment.