From 3ee06ed25c3b3999054f5028334cc585390c68d6 Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Tue, 2 Jul 2024 08:39:56 -0700 Subject: [PATCH] Fix indexer to compile for Rust 1.75 --- crates/sui-indexer/src/handlers/checkpoint_handler.rs | 2 +- crates/sui-indexer/src/test_utils.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/sui-indexer/src/handlers/checkpoint_handler.rs b/crates/sui-indexer/src/handlers/checkpoint_handler.rs index a0fd533cabda2..b3897f2fe8935 100644 --- a/crates/sui-indexer/src/handlers/checkpoint_handler.rs +++ b/crates/sui-indexer/src/handlers/checkpoint_handler.rs @@ -69,7 +69,7 @@ pub async fn new_handlers( ) -> Result, 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()) diff --git a/crates/sui-indexer/src/test_utils.rs b/crates/sui-indexer/src/test_utils.rs index 22b243cd7279a..421039555ca9c 100644 --- a/crates/sui-indexer/src/test_utils.rs +++ b/crates/sui-indexer/src/test_utils.rs @@ -40,7 +40,7 @@ impl ReaderWriterConfig { } } -pub async fn start_test_indexer( +pub async fn start_test_indexer( db_url: Option, rpc_url: String, reader_writer_config: ReaderWriterConfig, @@ -57,7 +57,7 @@ pub async fn start_test_indexer( .await } -pub async fn start_test_indexer_impl( +pub async fn start_test_indexer_impl( db_url: Option, rpc_url: String, reader_writer_config: ReaderWriterConfig,