Skip to content

Conversation

@ZanCorDX
Copy link
Collaborator

Created a new crate on rbuilder and moved the clickhouse back stuff and some other basic things there.
This PR should go after we merge flashbots/rbuilder#780

Copy link
Collaborator

@thedevbirb thedevbirb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just moving some stuff around is all it's needed here, so comments are mostly about that.

/// The channel where to send data to be backed up.
backup_tx: mpsc::Sender<FailedCommit<T>>,
}
impl rbuilder_utils::clickhouse_with_backup::metrics::Metrics for Metrics {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be implemented directly on IndexerMetrics, given it is a namespace struct too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the trait rbuilder_utils::clickhouse_with_backup::metrics::Metrics all the "clickhouse" on the methods was removed since it was redundant.
eg: Metrics::increment_write_failures gets mapped to IndexerMetrics::increment_clickhouse_write_failures.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just move this tests in mod.rs then, since it's all there is left.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd move the remaining implementations here inside models.rs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@thedevbirb
Copy link
Collaborator

Sorry, after repo transferring and some mandatory history rewrite this needs rebasing.

@ZanCorDX ZanCorDX force-pushed the clickhouse-backup-on-utils branch from 8d485c5 to 1995426 Compare October 24, 2025 18:35
@mempirate mempirate marked this pull request as ready for review October 25, 2025 11:04
Copy link
Collaborator

@thedevbirb thedevbirb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor requests, and then good to go!

Comment on lines 2 to 3
channel = "stable"
version = "1.89.0"
channel = "nightly-2025-09-21"
components = ["rustfmt", "clippy"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't specify a toolchain to use to build the code, and we don't want to use nightly for compiling. Right now, we want to use it only for the formatting, unless we find a good set of options available with stable only.

Moreover, my editor's LSP does not start because it can't pick up a version from this file.

I'd suggest to revert these changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this was not supposed to be comited!

Cargo.toml Outdated
Comment on lines 23 to 25
#rbuilder-primitives = {path="./../rbuilder/crates/rbuilder-primitives"}
rbuilder-utils = { git = "https://github.com/flashbots/rbuilder", rev = "77f35b4ecd39ac547e92de2f11a7497676d3bfd4", features = ["test-utils"] }
#rbuilder-utils = {path="./../rbuilder/crates/rbuilder-utils"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these comments?

@ZanCorDX ZanCorDX requested a review from thedevbirb October 27, 2025 16:58
@thedevbirb thedevbirb merged commit 813a074 into main Oct 28, 2025
4 checks passed
@thedevbirb thedevbirb deleted the clickhouse-backup-on-utils branch October 28, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants