Skip to content

Commit

Permalink
chore: add etcd option
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsauter committed Oct 11, 2023
1 parent 783b9c4 commit ba67a29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etcd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ func WithDialOptions(d ...grpc.DialOption) Opt {
}
}

// WithMaxCallRecvMsgSize add the default call option grpc.MaxCallRecvMsgSize with the given size
func WithMaxCallRecvMsgSize(bytes int) Opt {
return func(e *Backend) error {
e.dialOptions = append(e.dialOptions, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(bytes)))
return nil
}
}

type ssl struct {
key []byte
cert []byte
Expand Down

0 comments on commit ba67a29

Please sign in to comment.