Skip to content

Commit de477d3

Browse files
committed
Unexport acceptCompressors
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
1 parent 219e100 commit de477d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rpc_util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import (
4444
)
4545

4646
func init() {
47-
internal.AcceptCompressors = AcceptCompressors
47+
internal.AcceptCompressors = acceptCompressors
4848
}
4949

5050
// Compressor defines the interface gRPC uses to compress a message.
@@ -516,11 +516,11 @@ func (o CompressorCallOption) before(c *callInfo) error {
516516
}
517517
func (o CompressorCallOption) after(*callInfo, *csAttempt) {}
518518

519-
// AcceptCompressors returns a CallOption that limits the compression algorithms
519+
// acceptCompressors returns a CallOption that limits the compression algorithms
520520
// advertised in the grpc-accept-encoding header for response messages.
521521
// Compression algorithms not in the provided list will not be advertised, and
522522
// responses compressed with non-listed algorithms will be rejected.
523-
func AcceptCompressors(names ...string) CallOption {
523+
func acceptCompressors(names ...string) CallOption {
524524
cp := append([]string(nil), names...)
525525
return acceptCompressorsCallOption{names: cp}
526526
}

0 commit comments

Comments
 (0)