comment: default MaxSendMsgSize should be math.MaxInt32 instead of 4MB (#2586)

This commit is contained in:
Wu Kai
2019-01-23 02:48:59 +08:00
committed by lyuxuan
parent ec9c18c8c6
commit 4cad6a6283

View File

@ -244,7 +244,7 @@ func MaxRecvMsgSize(m int) ServerOption {
}
// MaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send.
// If this is not set, gRPC uses the default 4MB.
// If this is not set, gRPC uses the default `math.MaxInt32`.
func MaxSendMsgSize(m int) ServerOption {
return func(o *options) {
o.maxSendMessageSize = m