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

Hope to increase the resolution of conflicts that replaceOp at the same time #45

Open
Qquanwei opened this issue Nov 2, 2022 · 0 comments

Comments

@Qquanwei
Copy link

Qquanwei commented Nov 2, 2022

doc

{
  startTime: 1
}

when A and B both submit op with replaceOp(['startTime'], 2) and replaceOp(['startTime'], 3) will conflict and throw error.

but can we add extra infomation to resolve this problem ? example we add a 'timestamp' or random number

op object

['startTime', { r: 2, weight: Date.now() }]
['startTime', { r: 3, weight: Date.now() }]

This can keeps the two operations consistent。we only simple compare weight to compose two operation.

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

No branches or pull requests

1 participant