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

Ensure the server state is consistent whenever snapshot is called #427

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

patowen
Copy link
Collaborator

@patowen patowen commented Aug 11, 2024

Before this commit, if snapshot was called before the server ran its first step, there would be some unpopulated nodes in the graph, resulting in such nodes being transmitted to the client twice, once during the call to snapshot, and once as an accumulated change when calling step.

This PR ensures that such an inconsistent state no longer occurs.

@patowen patowen mentioned this pull request Aug 11, 2024
@patowen patowen requested a review from Ralith August 11, 2024 23:39
server/src/sim.rs Outdated Show resolved Hide resolved
Before this commit, if snapshot was called before the server ran its
first step, there would be some unpopulated nodes in the graph,
resulting in such nodes being transmitted to the client twice, once
during the call to snapshot, and once as an accumulated change when
calling step
@patowen patowen force-pushed the first-step-consistency branch from 728a328 to f58f39a Compare August 11, 2024 23:59
@patowen patowen requested a review from Ralith August 12, 2024 00:00
@Ralith Ralith enabled auto-merge (rebase) August 12, 2024 00:02
@Ralith Ralith merged commit cd82509 into Ralith:master Aug 12, 2024
4 checks passed
@patowen patowen deleted the first-step-consistency branch August 12, 2024 00:10
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.

2 participants