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

Two way op flow #41

Merged
merged 7 commits into from
Dec 4, 2024
Merged

Two way op flow #41

merged 7 commits into from
Dec 4, 2024

Conversation

ThetaSinner
Copy link
Member

We discussed needing to treat incoming MetaOps separately from ops that we have persisted. We don't know the internal structure of incoming op data. It needs to go to the host to be decoded. Then within Kitsune, we do need to be able to organize persisted ops by timestamp and op ID. Plus we don't want to be gossiping data until we've been able to store it and will be able to respond to requests for it.

So, this PR proposes that we have different types and require the host to be able to communicate the op data back to us with its timestamp.

See #20 (comment)

neonphog
neonphog previously approved these changes Dec 3, 2024
@ThetaSinner ThetaSinner marked this pull request as draft December 3, 2024 19:26
@ThetaSinner
Copy link
Member Author

Sorry, I extracted this from other changes and it's not as ready as I thought. I'll get this updated :)

@ThetaSinner ThetaSinner marked this pull request as ready for review December 3, 2024 19:59
@ThetaSinner
Copy link
Member Author

Okay, tests fixed, this should be good to go

crates/dht/src/time.rs Outdated Show resolved Hide resolved
neonphog
neonphog previously approved these changes Dec 3, 2024
Copy link
Collaborator

@neonphog neonphog left a comment

Choose a reason for hiding this comment

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

👍

crates/dht/src/time.rs Show resolved Hide resolved
@ThetaSinner ThetaSinner merged commit 0548a4c into main Dec 4, 2024
4 checks passed
@ThetaSinner ThetaSinner deleted the two-way-op-flow branch December 4, 2024 14:15
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.

3 participants