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

Ensure completions are executed on the currently connected client #440

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

karlseguin
Copy link
Contributor

For the time being, given that we only allow 1 client at a time, I took a shortcut to implement this. The server has an incrementing "current_client_id" which is part of every completion. On completion callback, we just check if its client_id is still equal to the server's current_client_id.

For the time being, given that we only allow 1 client at a time, I took a
shortcut to implement this. The server has an incrementing "current_client_id"
which is part of every completion. On completion callback, we just check if
its client_id is still equal to the server's current_client_id.
@krichprollsch krichprollsch merged commit aefd091 into lightpanda-io:main Feb 21, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
@karlseguin karlseguin deleted the managed_completions branch February 24, 2025 10:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants