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 client options to set Spec and ProtocolVersion #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emcfarlane
Copy link
Contributor

Allow clients to specify the Spec and ProtocolVersion with client options for use with a known client. This avoids querying the plugin for the protocol version and specification. Spec errors are no longer stored, this allows for transient errors to be retried.

Allow clients to specify the Spec and ProtocolVersion with client
options when using a kwown client. This avoids querying the plugin for
the protocol version and specificcation.
@bufdev
Copy link
Member

bufdev commented Sep 28, 2024

Can you explain a use case where I would always know the spec and protocol version?

@emcfarlane
Copy link
Contributor Author

This was an idea for cached plugins. On receiving a plugin we query the plugin and assert the protocol version storing the Spec. When we retrieve the plugin from the cache we know it protocol version and spec so don't require invoking the plugin again.

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