-
Notifications
You must be signed in to change notification settings - Fork 711
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
Make stable compliant #4314
Make stable compliant #4314
Conversation
* remove bound_map feature * restore rust-toolchain
* remove variant_count feature * fix VariantCount for ComponentState
Behavior that change : In storage we don"t remove the non-existing refs of the other storage in an |
Need #4364 to pass in review. |
@AurelienFT how about we move to https://github.com/rust-lang/rust/releases/tag/1.72.0 and stay there ? |
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, some comments for readability
}; | ||
if next_refresh <= Instant::now() { | ||
let now = Instant::now(); | ||
let duration = (start_time + tick).saturating_duration_since(Instant::now()); |
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.
why not use now
directly 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.
because i"m dumb :) Fixed. ty
massa-pool-worker/src/worker.rs
Outdated
let now = Instant::now(); | ||
let duration = (start_time + tick).saturating_duration_since(Instant::now()); | ||
if !duration.is_zero() { | ||
let duration = start_time + tick - now; |
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.
Why do you recompute duration
here? Can"t you just use its 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.
because i"m dumb :). Fixed :)
No description provided.