Skip to content
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

Merged
merged 30 commits into from
Aug 30, 2023
Merged

Make stable compliant #4314

merged 30 commits into from
Aug 30, 2023

Conversation

AurelienFT
Copy link
Contributor

No description provided.

@damip damip mentioned this pull request Aug 18, 2023
19 tasks
@AurelienFT
Copy link
Contributor Author

Behavior that change :

In storage we don"t remove the non-existing refs of the other storage in an extend it was not useful because the other storage is drop at the end we just need to retrieve which references was missing.

rust-toolchain.toml Outdated Show resolved Hide resolved
@AurelienFT
Copy link
Contributor Author

Need #4364 to pass in review.

massa-bootstrap/src/tools.rs Outdated Show resolved Hide resolved
@damip
Copy link
Member

damip commented Aug 25, 2023

@AurelienFT how about we move to https://github.com/rust-lang/rust/releases/tag/1.72.0 and stay there ?

@AurelienFT AurelienFT marked this pull request as ready for review August 28, 2023 12:00
@AurelienFT AurelienFT requested review from damip and modship August 29, 2023 12:45
massa-storage/src/lib.rs Outdated Show resolved Hide resolved
massa-storage/src/lib.rs Outdated Show resolved Hide resolved
massa-storage/src/lib.rs Outdated Show resolved Hide resolved
@AurelienFT AurelienFT requested a review from damip August 30, 2023 08:39
Copy link
Collaborator

@Leo-Besancon Leo-Besancon left a 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());
Copy link
Collaborator

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?

Copy link
Contributor Author

@AurelienFT AurelienFT Aug 30, 2023

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

let now = Instant::now();
let duration = (start_time + tick).saturating_duration_since(Instant::now());
if !duration.is_zero() {
let duration = start_time + tick - now;
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@AurelienFT AurelienFT merged commit 2b875f0 into testnet_26 Aug 30, 2023
@AurelienFT AurelienFT mentioned this pull request Sep 15, 2023
4 tasks
@AurelienFT AurelienFT deleted the make_stable_compliant branch October 23, 2023 08:46
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