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

refactor: move time management into its own component #385

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

itegulov
Copy link
Contributor

@itegulov itegulov commented Nov 18, 2024

What 💻

Makes time management less rigid by moving the logic into its own component.

Closes #386

Why ✋

Some flows depend on getting unique timestamps (e.g. new block, new batch, etc) and they really shouldn't hold a mutable reference to the node's internal state all the time.

@itegulov itegulov requested a review from a team as a code owner November 18, 2024 05:33
return time_delta_seconds;
}

let time_delta = time_delta_seconds.saturating_mul(1000);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if I am missing something but I don't think there ever was a reason to multiply by a 1000 here

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.

refactor: move time management to its own component
1 participant