Skip to content

Commit 219e100

Browse files
committed
Apply changes requested in code review
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
1 parent b34a4f2 commit 219e100

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rpc_util.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,15 @@ func (o CompressorCallOption) after(*callInfo, *csAttempt) {}
522522
// responses compressed with non-listed algorithms will be rejected.
523523
func AcceptCompressors(names ...string) CallOption {
524524
cp := append([]string(nil), names...)
525-
return AcceptCompressorsCallOption{names: cp}
525+
return acceptCompressorsCallOption{names: cp}
526526
}
527527

528-
// AcceptCompressorsCallOption is a CallOption that limits response compression.
529-
type AcceptCompressorsCallOption struct {
528+
// acceptCompressorsCallOption is a CallOption that limits response compression.
529+
type acceptCompressorsCallOption struct {
530530
names []string
531531
}
532532

533-
func (o AcceptCompressorsCallOption) before(c *callInfo) error {
533+
func (o acceptCompressorsCallOption) before(c *callInfo) error {
534534
allowed, err := newAcceptedCompressionConfig(o.names)
535535
if err != nil {
536536
return err
@@ -539,7 +539,7 @@ func (o AcceptCompressorsCallOption) before(c *callInfo) error {
539539
return nil
540540
}
541541

542-
func (AcceptCompressorsCallOption) after(*callInfo, *csAttempt) {}
542+
func (acceptCompressorsCallOption) after(*callInfo, *csAttempt) {}
543543

544544
// CallContentSubtype returns a CallOption that will set the content-subtype
545545
// for a call. For example, if content-subtype is "json", the Content-Type over

0 commit comments

Comments
 (0)