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

GRPCBroker: add DialWithOptions #257

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Jun 5, 2023

When creating new clients and servers with a type GRPCBroker, grpc.ServerOptions can be added when using Accept(id uint32) and AcceptAndServe(id uint32, s func([]grpc.ServerOption) *grpc.Server), but grpc.DialOptions cannot be added when using Dial(id uint32).

This PR proposes adding a DialWithOptions(id uint32, opts ...grpc.DialOption) method.

Note: Dial could be updated in place without affecting typical uses, but the signature change would still be breaking.

- Dial(id uint32)
+ Dial(id uint32, opts ...grpc.DialOption)

(this is the approach proposed in #251)

@hashicorp-cla
Copy link

hashicorp-cla commented Jun 5, 2023

CLA assistant check
All committers have signed the CLA.

@jmank88 jmank88 force-pushed the dial-with-options branch from 7bb12ec to 0f4d515 Compare June 5, 2023 13:20
@jmank88 jmank88 changed the title Update grpc_broker.go GRPCBroker: add DialWithOptions Jun 5, 2023
@jmank88
Copy link
Contributor Author

jmank88 commented Feb 8, 2024

Rebased muxer conflicts.

@jmank88
Copy link
Contributor Author

jmank88 commented Aug 29, 2024

@tomhjp @VioletHynes Is someone available to consider this feature (or #251)? 🙏

@VioletHynes
Copy link
Contributor

Hey! This seems super reasonable. Thanks for raising this. I'll try and get somebody's eyes on this shortly.

@divyaac divyaac self-requested a review August 29, 2024 15:56
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.

4 participants