Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cherry-pick][indexer] Cherry-pick to v1.28.0-release branch: Fix indexer to compile for Rust 1.75 (#18490) #18496

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/sui-indexer/src/handlers/checkpoint_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub async fn new_handlers<S, T>(
) -> Result<CheckpointHandler<S, T>, IndexerError>
where
S: IndexerStore + Clone + Sync + Send + 'static,
T: R2D2Connection,
T: R2D2Connection + 'static,
{
let checkpoint_queue_size = std::env::var("CHECKPOINT_QUEUE_SIZE")
.unwrap_or(CHECKPOINT_QUEUE_SIZE.to_string())
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-indexer/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl ReaderWriterConfig {
}
}

pub async fn start_test_indexer<T: R2D2Connection + Send>(
pub async fn start_test_indexer<T: R2D2Connection + Send + 'static>(
db_url: Option<String>,
rpc_url: String,
reader_writer_config: ReaderWriterConfig,
Expand All @@ -57,7 +57,7 @@ pub async fn start_test_indexer<T: R2D2Connection + Send>(
.await
}

pub async fn start_test_indexer_impl<T: R2D2Connection>(
pub async fn start_test_indexer_impl<T: R2D2Connection + 'static>(
db_url: Option<String>,
rpc_url: String,
reader_writer_config: ReaderWriterConfig,
Expand Down
Loading