Revert "cap max msg size to min(max_int, max_uint32) (#1598)" (#1619)

This reverts commit 5856538706dc3abc44dd5ba1a8bb19a0dfb1ab25.
This commit is contained in:
dfawley
2017-10-25 10:31:00 -07:00
committed by GitHub
parent 5856538706
commit c5f391bd6c
3 changed files with 8 additions and 36 deletions

View File

@ -206,7 +206,6 @@ func FailFast(failFast bool) CallOption {
}
// MaxCallRecvMsgSize returns a CallOption which sets the maximum message size the client can receive.
// Note that the maximum effective value is MaxUint32 due to protocol limitations.
func MaxCallRecvMsgSize(s int) CallOption {
return beforeCall(func(o *callInfo) error {
o.maxReceiveMessageSize = &s
@ -215,7 +214,6 @@ func MaxCallRecvMsgSize(s int) CallOption {
}
// MaxCallSendMsgSize returns a CallOption which sets the maximum message size the client can send.
// Note that the maximum effective value is MaxUint32 due to protocol limitations.
func MaxCallSendMsgSize(s int) CallOption {
return beforeCall(func(o *callInfo) error {
o.maxSendMessageSize = &s