MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithMaxRecvMsgSize

Function WithMaxRecvMsgSize

pkg/grpcconn/grpcconn.go:92–96  ·  view source on GitHub ↗

WithMaxRecvMsgSize overrides the client-side cap on incoming unary message size. Values <= 0 fall back to DefaultMaxRecvMsgSize.

(size int)

Source from the content-addressed store, hash-verified

90// WithMaxRecvMsgSize overrides the client-side cap on incoming unary message
91// size. Values <= 0 fall back to DefaultMaxRecvMsgSize.
92func WithMaxRecvMsgSize(size int) Option {
93 return func(opt *newOptionalArg) {
94 opt.maxRecvMsgSize = size
95 }
96}
97
98func cliVersionUnaryInterceptor(version string) grpc.UnaryClientInterceptor {
99 return func(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {

Callers 2

wrappedArtifactConnFunction · 0.92
NewRootCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected