Skip to content

Call wake_up after the event has been already enqueued - #71

Merged
c-git merged 2 commits into
rerun-io:mainfrom
vimlucid:70-wake-up-after-event-send
Sep 10, 2026
Merged

c-git merged 2 commits into
rerun-io:mainfrom
vimlucid:70-wake-up-after-event-send

Conversation

@vimlucid

@vimlucid vimlucid commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

@c-git c-git left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for pointing this out. Let's call wake_up on error as well. So let's move it after the if/else block and just store what we should return in a variable called something like result and then return it after calling wake_up.

I understand that they will no longer be able to receive the value sent on error but maybe they are not waiting on the value only the attempt to send in which case we would break their code thus making this a breaking change when there isn't a need for it to be.

@c-git c-git added the include in changelog Include this in CHANGELOG.md label Sep 7, 2026
@c-git c-git changed the title Call wake_up on successfully enqueued events and only after the event has been already enqueued Call wake_up on after the event has been already enqueued Sep 7, 2026
@c-git c-git changed the title Call wake_up on after the event has been already enqueued Call wake_up after the event has been already enqueued Sep 7, 2026
@vimlucid
vimlucid marked this pull request as ready for review September 10, 2026 06:00
@vimlucid

vimlucid commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Addressed.

As a side question since this is my first open source GitHub contribution - will you get a notification if I push commits into my own fork (if there's already a PR connected to the fork) or do I have to write a comment to notify you that I've addressed the comments. I'm asking in order to avoid creating unnecessary noise. At work we have separate channels to communicate "PR is ready for a second pass" - maybe it's a common rule that the PR owner should always write such a comment (because maintainers shouldn't look at multiple intermediate commits)?

One more side question 🙏 - the placeholder PR message said something like "PR should stay in draft mode until CI/CD checks have run" - however it seems CI/CD requires maintainer approval. After they approve the CI/CD run then at this point they've already seen the PR. What's the right thing to do here?

@c-git

c-git commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Addressed.

Thank you. Looks good.

As a side question since this is my first open source GitHub contribution ...

Very well done. I couldn't tell it was your first contribution.

... - will you get a notification if I push commits into my own fork (if there's already a PR connected to the fork) or do I have to write a comment to notify you that I've addressed the comments. I'm asking in order to avoid creating unnecessary noise. At work we have separate channels to communicate "PR is ready for a second pass" - maybe it's a common rule that the PR owner should always write such a comment (because maintainers shouldn't look at multiple intermediate commits)?

I did get a notification. But I'm not sure if that's a setting I put on or if it's the default. I don't think adding a comment would cause an issue but I don't know the general approach. I've always added a comment when I make changes when I'm the PR author but I don't know in general what is normally done. But for this crate, both are fine. I'll get the notification even if you don't put a comment.

One more side question 🙏 - the placeholder PR message said something like "PR should stay in draft mode until CI/CD checks have run" - however it seems CI/CD requires maintainer approval. After they approve the CI/CD run then at this point they've already seen the PR. What's the right thing to do here?

Thank you for that feedback. I will review the placeholder message in light of your comment and update it after I've given it some thought. It never crossed my mind to update it after I took over maintaining the crate.

@c-git

c-git commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

The dependency issues are not related to this PR. I will update it after.

@c-git
c-git merged commit 0191ba2 into rerun-io:main Sep 10, 2026
7 of 8 checks passed
shadowbrok3r added a commit to shadowbrok3r/ewebsock that referenced this pull request Sep 25, 2026
- tungstenite and tokio-tungstenite 0.26 -> 0.28, matching MastertechProject's lock.
- WsSender::send (tokio) enqueues on an unbounded channel instead of spawning a task per message, so messages go out in call order and send() no longer needs a runtime context.
- Options::max_incoming_frame_size is applied again (the builder result was discarded, leaving tungstenite's 16 MiB default).
- WsReceiver wakes the UI after the event is queued (upstream rerun-io#71).
- Tests for send order and the frame limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

include in changelog Include this in CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

connect_with_wakeup's wake_up is called before tx.send(event)

2 participants