MCPcopy
hub / github.com/grpc/grpc-go / WithMaxMsgSize

Function WithMaxMsgSize

dialoptions.go:268–270  ·  view source on GitHub ↗

WithMaxMsgSize returns a DialOption which sets the maximum message size the client can receive. Deprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. Will be supported throughout 1.x.

(s int)

Source from the content-addressed store, hash-verified

266// Deprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. Will
267// be supported throughout 1.x.
268func WithMaxMsgSize(s int) DialOption {
269 return WithDefaultCallOptions(MaxCallRecvMsgSize(s))
270}
271
272// WithDefaultCallOptions returns a DialOption which sets the default
273// CallOptions for calls over the connection.

Callers 1

configDialMethod · 0.92

Calls 2

WithDefaultCallOptionsFunction · 0.85
MaxCallRecvMsgSizeFunction · 0.85

Tested by 1

configDialMethod · 0.74