-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
07ee54f
to
e21ad9d
Compare
1740681556, // pecorino start timestamp as sane default | ||
0, 1, |
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.
should these be constants?
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.
I don't know what these are, so i just moved them as is. @dylanlott can make a change here
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.
FromEnv
declarations need a second look.
}; | ||
use std::time::{Duration, Instant}; | ||
use tokio::time::timeout; | ||
|
||
#[derive(Debug, Clone, FromEnv)] | ||
struct Config { |
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.
Maybe call this something like SubmitConfig
to clearly distinguish it from the BuilderConfig
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.
they're in different targets so i dont think we need to distinguish
66086e4
to
da29daa
Compare
1ddfbda
to
2280e57
Compare
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