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

4012 remove dependency to chrono #4020

Merged
merged 7 commits into from
Jun 2, 2023

Conversation

Leo-Besancon
Copy link
Contributor

  • document all added functions
  • try in sandbox /simulation/labnet
  • unit tests on the added/changed features
    • make tests compile
    • make tests pass
  • add logs allowing easy debugging in case the changes caused problems
  • if the API has changed, update the API specification

@Leo-Besancon Leo-Besancon requested review from sydhds and damip June 1, 2023 14:51
.unwrap();
warn!("Please update your Massa node before: {}", dt.to_rfc2822());

let activation_datetime = OffsetDateTime::from_unix_timestamp(
Copy link
Member

@damip damip Jun 1, 2023

Choose a reason for hiding this comment

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

I vote for encapsulating all time related stuff into MassaTime.

So basically we can have "MassaTime::format_instant" and a "MassaTime::format_duration" methods

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in f0c9d7e

start: MassaTime::from_millis(start.timestamp() as u64),
timeout: MassaTime::from_millis(timeout.timestamp() as u64),
start: MassaTime::from_millis(
start_datetime
Copy link
Member

Choose a reason for hiding this comment

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

we should use MassaTime everywhere. Why are we using NaiveDateTime and OffsetDateTime at all ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to MassaTime in f0c9d7e

@Leo-Besancon Leo-Besancon requested a review from damip June 2, 2023 08:17
Copy link
Member

@damip damip left a comment

Choose a reason for hiding this comment

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

LGTM

@Leo-Besancon Leo-Besancon merged commit 948d485 into testnet_23 Jun 2, 2023
10 checks passed
@Leo-Besancon Leo-Besancon deleted the 4012-remove-dependency-to-chrono branch June 2, 2023 09:10
@Leo-Besancon Leo-Besancon linked an issue Jun 4, 2023 that may be closed by this pull request
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.

Remove dependency to chrono
3 participants