Skip to content

feat(webxdc): add unique IDs to status updates sent outside #5048

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

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Nov 26, 2023

This allows for deduplication
if status updates are sent over multiple transports.

close #5042

@link2xt link2xt requested a review from Septias November 26, 2023 22:06
@link2xt link2xt force-pushed the link2xt/webxdc-update-deduplication branch from 8646aad to 15a132a Compare November 26, 2023 22:12
@link2xt link2xt changed the title feat: add unique IDs to status updates sent outside feat(webxdc): add unique IDs to status updates sent outside Nov 26, 2023
This allows for deduplication
if status updates are sent over multiple transports.
@link2xt link2xt force-pushed the link2xt/webxdc-update-deduplication branch from 15a132a to 52144cf Compare November 26, 2023 22:17
Copy link
Collaborator

@Septias Septias left a comment

Choose a reason for hiding this comment

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

looks good :)
I updated the comment to auto-close the correlating issue.

status_update_serial: serial,
});
if let Some(serial) = serial {
context.emit_event(EventType::WebxdcStatusUpdate {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

change_logging_webxdc fails randomly with the "Database is locked" error now.

But I wonder how it ever worked, this emits a "webxdc status update" event which then itself gets logged as a webxdc update.

@link2xt link2xt merged commit b779d08 into main Nov 27, 2023
@link2xt link2xt deleted the link2xt/webxdc-update-deduplication branch November 27, 2023 13:49
@link2xt link2xt mentioned this pull request Apr 5, 2024
3 tasks
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.

Deduplicate status updates
2 participants