-
Notifications
You must be signed in to change notification settings - Fork 24
feat: Add grace period #467
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
Pull Request Test Coverage Report for Build 11719019227Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
common/src/tap/checks/value_check.rs
Outdated
| global_model: GlobalModel, | ||
| watcher_cancel_token: tokio_util::sync::CancellationToken, | ||
| updated_at: GracePeriod, | ||
| grace_period: u64, |
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.
Can we change this to Duration?
common/src/tap/checks/value_check.rs
Outdated
| // get value | ||
| let value = receipt.signed_receipt().message.value; | ||
|
|
||
| if self.inside_grace_period() && value > MINIMAL_VALUE { |
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.
= MINIMAL_VALUE
common/src/tap/checks/value_check.rs
Outdated
|
|
||
| impl MinimumValue { | ||
| pub async fn new(pgpool: PgPool) -> Self { | ||
| pub async fn new(pgpool: PgPool, grace_period: u64) -> Self { |
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.
Also this, could you change it to Duration?
gusinacio
left a comment
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.
LGTM
No description provided.