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

libsql/replication: Switch to BatchLogEntries RPC #253

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

penberg
Copy link
Collaborator

@penberg penberg commented Aug 8, 2023

The LogEntries RPC is stream-based, which doesn't really work for the sync() API we have. Switch to the new BatchLogEntries RPC introduced by Lucio.

The LogEntries RPC is stream-based, which doesn't really work for the
`sync()` API we have. Switch to the new BatchLogEntries RPC introduced
by Lucio.
@penberg penberg added this pull request to the merge queue Aug 8, 2023
Merged via the queue into tursodatabase:main with commit 35ada09 Aug 8, 2023
@penberg penberg deleted the switch-proto branch August 8, 2023 07:26
.and_then(|f| Frame::try_from_bytes(f.data.into()))
let frames = frames.frames.iter()
.map(|f| {
Frame::try_from_bytes(f.data.clone())
Copy link
Contributor

Choose a reason for hiding this comment

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

An unfortunate clone()... would it help if you called frames.frames.into_iter() instead of frames.frames.iter(), to own the iterated values?

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm, I'll post a follow-up!

MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
253: Replace an expired JWT in tests r=honzasp a=honzasp

The previous JWT expired in 3 days, breaking tests. The new one should expire in 2123, when we should no longer be around!

Co-authored-by: Jan Špaček <[email protected]>
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.

2 participants