Skip to content

Instantly share code, notes, and snippets.

@ehatricksmith
Created October 27, 2022 22:47
Show Gist options
  • Save ehatricksmith/2e15b55e2e4c9d9cfd07fb213143e98e to your computer and use it in GitHub Desktop.
Save ehatricksmith/2e15b55e2e4c9d9cfd07fb213143e98e to your computer and use it in GitHub Desktop.
{
structs: [
Item { // This insert is a tombstone
id: ID { client: 2617533864, clock: 0 },
length: 1,
origin: null,
left: null,
right: null,
rightOrigin: null,
parent: 'listOfNumbers',
parentSub: null,
redone: null,
content: ContentDeleted { len: 1 }, // no content
info: 0
},
Item {
id: ID { client: 2617533864, clock: 1 },
length: 1,
origin: null,
left: null,
right: null,
rightOrigin: ID { client: 2617533864, clock: 0 },
parent: null,
parentSub: null,
redone: null,
content: ContentAny { arr: [ 2 ] },
info: 2
}
],
ds: DeleteSet {
clients: Map(1) { 2617533864 => [ DeleteItem { clock: 0, len: 1 } ] }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment