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

fix: sdk7 crdt consensus rules #5009

Merged
merged 8 commits into from
Apr 24, 2023
Merged

fix: sdk7 crdt consensus rules #5009

merged 8 commits into from
Apr 24, 2023

Conversation

pbosio
Copy link
Contributor

@pbosio pbosio commented Apr 20, 2023

What does this PR change?

*change crdt consensus rules to match js-sdk
*renamed CRDTMessage for CrdtMessage
*changed CrdtMessage type to readonly struct

fixes decentraland/sdk#648

Our Code Review Standards

https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md

Copilot summary

🤖 Generated by Copilot at 18459b2

This pull request refactors the CRDT protocol and its related classes to improve performance, readability, and consistency. It renames the CRDTMessage class to CrdtMessage and changes it from a class to a struct, and updates the references and serialization logic accordingly. It also fixes some minor issues and improves the error handling and encapsulation of the CRDT service and executor classes. It modifies the AssemblyInfo.cs file to allow internal access to some test assemblies, and updates the expected final CRDT state in the arraybuffer.test file.

@pbosio pbosio added No QA Needed Issues which do not require QA testing no_reviewers labels Apr 20, 2023
@pbosio pbosio self-assigned this Apr 20, 2023
@pbosio pbosio marked this pull request as ready for review April 20, 2023 13:53
@pbosio pbosio requested a review from a team as a code owner April 20, 2023 13:53
@pbosio pbosio requested review from pravusjif and AjimenezDCL April 20, 2023 13:56
@pbosio pbosio enabled auto-merge (squash) April 24, 2023 15:59
@pbosio pbosio merged commit 2ac0548 into dev Apr 24, 2023
@pbosio pbosio deleted the fix/crdt-consensus-rules branch April 24, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No QA Needed Issues which do not require QA testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply new consensus rules in unity-renderer
3 participants