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

grpcclient: Support custom gRPC compressors #583

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Conversation

aknuds1
Copy link
Collaborator

@aknuds1 aknuds1 commented Sep 17, 2024

What this PR does:
Add support to the grpcclient package for custom gRPC compressors.

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Looks on the right path.

grpcclient/grpcclient.go Outdated Show resolved Hide resolved
grpcclient/grpcclient.go Outdated Show resolved Hide resolved
@aknuds1 aknuds1 mentioned this pull request Sep 17, 2024
4 tasks
@aknuds1
Copy link
Collaborator Author

aknuds1 commented Sep 17, 2024

Thanks for the review @pstibrany - I'm going to add tests before finalizing.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 marked this pull request as ready for review September 18, 2024 17:21
@aknuds1
Copy link
Collaborator Author

aknuds1 commented Sep 18, 2024

Added tests.

@aknuds1 aknuds1 merged commit 9102f24 into main Sep 19, 2024
5 checks passed
@aknuds1 aknuds1 deleted the arve/grpc-comp-custom branch September 19, 2024 08:02
Comment on lines +11 to +12
func TestConfig(t *testing.T) {
t.Run("custom compressors", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func TestConfig(t *testing.T) {
t.Run("custom compressors", func(t *testing.T) {
func TestCustomCompressorsConfig(t *testing.T) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess it's a style issue, but to me it made sense to make the root test for the Config class, and then have sub tests for functionalities.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, not important at all. It just look weird to me to have top-level test function with single t.Run call :) Feel free to ignore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hopefully there will be more sub-tests :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants