Skip to content

Conversation

@carlosvdr
Copy link
Contributor

No description provided.

@carlosvdr carlosvdr self-assigned this Nov 6, 2024
@coveralls
Copy link

coveralls commented Nov 6, 2024

Pull Request Test Coverage Report for Build 11719019227

Warning: 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

  • 19 of 23 (82.61%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.001%) to 74.618%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/src/tap.rs 0 1 0.0%
common/src/tap/checks/value_check.rs 19 22 86.36%
Files with Coverage Reduction New Missed Lines %
common/src/tap/checks/value_check.rs 1 90.7%
common/src/tap/checks/deny_list_check.rs 2 97.35%
Totals Coverage Status
Change from base Build 11708731510: 0.001%
Covered Lines: 5368
Relevant Lines: 7194

💛 - Coveralls

@carlosvdr carlosvdr requested a review from gusinacio November 6, 2024 21:15
@carlosvdr carlosvdr marked this pull request as ready for review November 6, 2024 21:15
global_model: GlobalModel,
watcher_cancel_token: tokio_util::sync::CancellationToken,
updated_at: GracePeriod,
grace_period: u64,
Copy link
Contributor

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?

// get value
let value = receipt.signed_receipt().message.value;

if self.inside_grace_period() && value > MINIMAL_VALUE {
Copy link
Contributor

Choose a reason for hiding this comment

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

= MINIMAL_VALUE


impl MinimumValue {
pub async fn new(pgpool: PgPool) -> Self {
pub async fn new(pgpool: PgPool, grace_period: u64) -> Self {
Copy link
Contributor

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?

@carlosvdr carlosvdr requested a review from gusinacio November 7, 2024 08:19
Copy link
Contributor

@gusinacio gusinacio left a comment

Choose a reason for hiding this comment

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

LGTM

@gusinacio gusinacio merged commit 775f2f6 into main Nov 7, 2024
10 checks passed
@gusinacio gusinacio deleted the carlosvdr/TAP-288 branch November 7, 2024 16:35
@github-actions github-actions bot mentioned this pull request Nov 7, 2024
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.

4 participants