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

ORArray #59

Merged
merged 23 commits into from
Oct 24, 2021
Merged

ORArray #59

merged 23 commits into from
Oct 24, 2021

Conversation

wngr
Copy link
Contributor

@wngr wngr commented Oct 20, 2021

I think that's the fourth iteration now.

TODO:

@wngr wngr mentioned this pull request Oct 20, 2021
crdt/src/lens.rs Show resolved Hide resolved
crdt/src/cursor.rs Outdated Show resolved Hide resolved
crdt/src/crdt.rs Outdated Show resolved Hide resolved
crdt/src/cursor.rs Outdated Show resolved Hide resolved
crdt/src/schema.rs Outdated Show resolved Hide resolved
@wngr wngr changed the title [WIP] ORArray ORArray Oct 22, 2021
crdt/src/path.rs Outdated Show resolved Hide resolved
crdt/src/cursor.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good!

crdt/src/cursor.rs Show resolved Hide resolved
crdt/src/cursor.rs Show resolved Hide resolved
crdt/src/cursor.rs Outdated Show resolved Hide resolved
path.next()?.position()?;
path.next()?.prim_u64()?;
path.next()?.nonce()?;
path.next()?.sig()?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a second signature?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking was that during a move the actual value itself is untouched. However I'm not sure about the implications.

What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how it works yet exactly. I'll play around with it once it's merged. Is the signature being verified somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's not. Where's that done for the other stuff?

Will finish my tests and merge this evening.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 67

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I guess it makes more sense in this case to overwrite the peer and signature fields when moving.

@wngr wngr merged commit a5701ab into master Oct 24, 2021
@wngr wngr deleted the ow/or-array-2 branch October 24, 2021 17:27
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.

None yet

3 participants