Skip to content

feat: implements logs subscribe / unsubscribe websocket endpoint#243

Merged
lgalabru merged 3 commits intofeat/tui-fixesfrom
feat/logs-subscribe
Jul 24, 2025
Merged

feat: implements logs subscribe / unsubscribe websocket endpoint#243
lgalabru merged 3 commits intofeat/tui-fixesfrom
feat/logs-subscribe

Conversation

@lgalabru
Copy link
Copy Markdown
Collaborator

No description provided.

@lgalabru lgalabru changed the base branch from main to feat/tui-fixes July 23, 2025 20:23
@lgalabru lgalabru changed the base branch from feat/tui-fixes to main July 23, 2025 22:02
@lgalabru lgalabru changed the base branch from main to feat/tui-fixes July 23, 2025 22:02
Comment thread crates/core/src/surfnet/svm.rs
Comment thread crates/core/src/surfnet/svm.rs
Comment thread crates/core/src/surfnet/svm.rs
err: err.clone(),
logs: logs.clone(),
};
let _ = tx.send((self.get_latest_absolute_slot(), message));
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.

Maybe a simple solution for my above question about removing from the logs_subscriptions vec is if this tx.send fails, we consider the rx disconnected and remove?

Would be easy to implement, but could potentially yield some hard to track "what happened to my subscription" bugs ¯_(ツ)_/¯

@lgalabru lgalabru requested a review from MicaiahReid July 24, 2025 03:10
Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

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

Thanks for making those issues and fixes! looks good!

@lgalabru lgalabru merged commit 401620f into feat/tui-fixes Jul 24, 2025
lgalabru added a commit that referenced this pull request Jul 24, 2025
@lgalabru lgalabru deleted the feat/logs-subscribe branch July 24, 2025 12:29
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