Skip to content

encoding: fix duplicate compressor names#5958

Merged
dfawley merged 2 commits into
grpc:masterfrom
jronak:fix-compressor-registry
Jan 24, 2023
Merged

encoding: fix duplicate compressor names#5958
dfawley merged 2 commits into
grpc:masterfrom
jronak:fix-compressor-registry

Conversation

@jronak

@jronak jronak commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

Previously, registering multiple compressors with the same name would append the name repeatedly in RegisteredCompressorNames. This PR fixes it.

RELEASE NOTES: N/A

Comment thread encoding/encoding_test.go Outdated
@easwars easwars added this to the 1.53 Release milestone Jan 23, 2023

@easwars easwars left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM modulo the use of cmp package instead of reflect.

@dfawley dfawley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM; thanks for the fix!

@dfawley dfawley merged commit e5a0237 into grpc:master Jan 24, 2023
@jronak jronak deleted the fix-compressor-registry branch January 24, 2023 17:41
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants