Skip to content

refactor: update config to use derive #75

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 2 commits into from
May 8, 2025
Merged

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented May 7, 2025

Updates the builder to use the FromEnv derive

@rswanson this changes the names of the slot calc variables to match them as used in other repos

Copy link
Member Author

prestwich commented May 7, 2025

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

@prestwich prestwich marked this pull request as ready for review May 7, 2025 14:16
@prestwich prestwich requested review from Evalir and dylanlott as code owners May 7, 2025 14:16
@prestwich prestwich force-pushed the prestwich/new-config branch 2 times, most recently from 07ee54f to e21ad9d Compare May 7, 2025 15:06
Comment on lines +48 to +49
1740681556, // pecorino start timestamp as sane default
0, 1,
Copy link
Member

Choose a reason for hiding this comment

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

should these be constants?

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 don't know what these are, so i just moved them as is. @dylanlott can make a change here

Copy link
Contributor

@dylanlott dylanlott left a comment

Choose a reason for hiding this comment

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

FromEnv declarations need a second look.

};
use std::time::{Duration, Instant};
use tokio::time::timeout;

#[derive(Debug, Clone, FromEnv)]
struct Config {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe call this something like SubmitConfig to clearly distinguish it from the BuilderConfig

Copy link
Member Author

Choose a reason for hiding this comment

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

they're in different targets so i dont think we need to distinguish

Base automatically changed from prestwich/trim-and-simplify to main May 8, 2025 12:32
@prestwich prestwich force-pushed the prestwich/new-config branch from 66086e4 to da29daa Compare May 8, 2025 12:38
@prestwich prestwich force-pushed the prestwich/new-config branch from 1ddfbda to 2280e57 Compare May 8, 2025 12:46
@prestwich prestwich requested review from dylanlott and Evalir May 8, 2025 12:47
@prestwich prestwich merged commit 26fb35c into main May 8, 2025
5 checks passed
@prestwich prestwich deleted the prestwich/new-config branch May 8, 2025 18:56
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