Skip to content

Commit

Permalink
hound: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amalthundiyil committed Apr 30, 2022
1 parent b6cbe64 commit 676ce94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/rgrpc/todo/pool/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package pool

const (
DefaultMaxCallRecvMsgSize = 10240000
defaultMaxCallRecvMsgSize = 10240000
)

// Option defines a single option function.
Expand All @@ -34,7 +34,7 @@ type Options struct {
// newOptions initializes the available default options.
func newOptions(opts ...Option) Options {
opt := Options{
MaxCallRecvMsgSize: DefaultMaxCallRecvMsgSize,
MaxCallRecvMsgSize: defaultMaxCallRecvMsgSize,
}

for _, o := range opts {
Expand All @@ -51,7 +51,7 @@ func Endpoint(val string) Option {
}
}

// MaxCallMsgRecvSizeprovides a function to set the MaxCallRecvMsgSize option.
// MaxCallRecvMsgSize provides a function to set the MaxCallRecvMsgSize option.
func MaxCallRecvMsgSize(size int) Option {
return func(o *Options) {
o.MaxCallRecvMsgSize = size
Expand Down

0 comments on commit 676ce94

Please sign in to comment.