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

Add server side events to notify the clients #346

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

cryptobench
Copy link
Member

No description provided.

@cryptobench cryptobench linked an issue Sep 26, 2024 that may be closed by this pull request
@cryptobench cryptobench marked this pull request as ready for review September 27, 2024 08:13
@@ -0,0 +1,63 @@
use std::sync::{Arc, Mutex};
use actix_web_lab::sse;
use actix_web_lab::sse::Event;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix those unused imports. Changes look fine otherwise, I’ll approve once this is fixed

Copy link
Member Author

Choose a reason for hiding this comment

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

But the build fails without those 3?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, the comment might’ve been placed on the wrong line. See the checks tab — it says which imports are unused (also not all code is formatted with cargo fmt, this too needs to be done)

Choose a reason for hiding this comment

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

Code formatted and removed unused imports

Signed-off-by: Shivank Anchal <anchalshivank99@gmail.com>
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.

Make it possible to listen for events
3 participants