Skip to content

Commit b34a4f2

Browse files
committed
Fix ci
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
1 parent d6f69e2 commit b34a4f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rpc_util.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,16 @@ 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
520+
// advertised in the grpc-accept-encoding header for response messages.
521+
// Compression algorithms not in the provided list will not be advertised, and
522+
// responses compressed with non-listed algorithms will be rejected.
519523
func AcceptCompressors(names ...string) CallOption {
520524
cp := append([]string(nil), names...)
521525
return AcceptCompressorsCallOption{names: cp}
522526
}
523527

528+
// AcceptCompressorsCallOption is a CallOption that limits response compression.
524529
type AcceptCompressorsCallOption struct {
525530
names []string
526531
}

0 commit comments

Comments
 (0)