Skip to content

Commit

Permalink
[cherry-pick][indexer] Cherry-pick to v1.28.0-release branch: Fix i…
Browse files Browse the repository at this point in the history
…ndexer to compile for Rust 1.75 (MystenLabs#18490) (MystenLabs#18496)

## Description 

These changes ensure that brew can compile our code to release `sui`
binary, and similarly, that `cargo install [..] sui --branch testnet`
does not break. We need this to go with the testnet release today.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
stefan-mysten authored Jul 2, 2024
1 parent 9e2b021 commit 08b5038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 08b5038

Please sign in to comment.