-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
indexer alt: integrate tempDB #20115
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
8dd1bac
to
e010f7e
Compare
e010f7e
to
9c165ae
Compare
9c165ae
to
bec36b2
Compare
crates/sui-indexer-alt/Cargo.toml
Outdated
@@ -25,6 +25,7 @@ prometheus.workspace = true | |||
reqwest.workspace = true | |||
serde.workspace = true | |||
telemetry-subscribers.workspace = true | |||
tempfile.workspace = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved here for TempDB, which is better without #[cfg(test)]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @gegaowp -- main thing I'd like to see is whether we can avoid duplicating the config defaults (cc @bmwill in case you have any tricks here...), otherwise the other main comment is about file order and position for tempdb.rs
, the file structure we use in sui-indexer-alt
is:
- imports
- exports
- modules
- consts
- types
- impl blocks
- trait impl blocks (more generic trait impls go last)
- free functions
- tests
In each section elements are ordered in decreasing order of visibility (pub
, pub(crate)
, ..., to private).
30d61de
to
e66ce7d
Compare
e66ce7d
to
634c691
Compare
634c691
to
42f5180
Compare
revised pr and resolved comments except the duplicate default value. |
fcece3b
to
7d78581
Compare
7d78581
to
420ceda
Compare
420ceda
to
ca43ec7
Compare
ca43ec7
to
1a85800
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1a85800
to
42b4f02
Compare
42b4f02
to
d4b5e07
Compare
## Description title to unblock committer related tests including some test utils for those tests. ## Test plan - modified smoketest of tempdb - added test for reset_database without running migrations --- ## 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: - [ ] REST API:
Description
title to unblock committer related tests including some test utils for those tests.
Test plan
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.