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

Merged
merged 4 commits into from
Nov 19, 2024

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
@itegulov itegulov force-pushed the daniyar/timestamp-manager branch from 994353a to 655dfeb Compare November 18, 2024 05:57
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

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

Mostly looks good!

src/node/in_memory_ext.rs Show resolved Hide resolved
src/node/time.rs Outdated Show resolved Hide resolved
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
src/node/in_memory_ext.rs Outdated Show resolved Hide resolved
@itegulov itegulov requested a review from popzxc November 18, 2024 14:25
dutterbutter
dutterbutter previously approved these changes Nov 18, 2024
Copy link
Collaborator

@dutterbutter dutterbutter left a comment

Choose a reason for hiding this comment

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

This is great!

popzxc
popzxc previously approved these changes Nov 18, 2024
@itegulov itegulov dismissed stale reviews from popzxc and dutterbutter via 19ba778 November 19, 2024 01:36
@itegulov itegulov merged commit e1d9a8f into main Nov 19, 2024
10 checks passed
@itegulov itegulov deleted the daniyar/timestamp-manager branch November 19, 2024 05:16
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
3 participants