Skip to content

chore: misc improvements #132

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

Merged
merged 1 commit into from
Jul 28, 2025
Merged

chore: misc improvements #132

merged 1 commit into from
Jul 28, 2025

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Jul 24, 2025

No description provided.

Copy link
Member Author

Evalir commented Jul 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Evalir Evalir force-pushed the evalir/misc-improvements branch from aa22c3f to 45c6196 Compare July 24, 2025 23:47
@Evalir Evalir marked this pull request as ready for review July 24, 2025 23:58
@@ -8,6 +8,9 @@ use serde::{Deserialize, Serialize};
use std::time::Duration;
use tokio::{sync::mpsc, task::JoinHandle, time};

/// Poll interval for the transaction poller in milliseconds.
const POLL_INTERVAL_MS: u64 = 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Why not an env var? If we changed it once here, it seems likely we'll want/need to change it again in the future, so it would likely be useful to have this as an optional env var instead of a hardcoded value.

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't change this, I just made it a constant. I don't think it's also necessarily great to have this as a config value as it can be used to abuse polling the cache by reducing the poll time.

@Evalir Evalir requested a review from dylanlott July 28, 2025 14:22
Comment on lines 56 to +60
counter!("metrics.tx_succeeded").increment(1);
debug!("tx succeeded");
} else {
counter!("metrics.tx_reverted").increment(1);
debug!("tx reverted");
Copy link
Member Author

Choose a reason for hiding this comment

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

this was upside down

@Evalir Evalir merged commit f4e27e3 into main Jul 28, 2025
7 checks passed
@Evalir Evalir deleted the evalir/misc-improvements branch July 28, 2025 14:30
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.

2 participants