Skip to content

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

Description

@Qquanwei

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions