MCPcopy
hub / github.com/grafana/dskit / CallOptions

Method CallOptions

crypto/tls/test/tls_integration_test.go:656–664  ·  view source on GitHub ↗

CallOptions returns the config in terms of grpc.CallOptions.

()

Source from the content-addressed store, hash-verified

654
655// CallOptions returns the config in terms of grpc.CallOptions.
656func (cfg *grpcConfig) CallOptions() []grpc.CallOption {
657 var opts []grpc.CallOption
658 opts = append(opts, grpc.MaxCallRecvMsgSize(cfg.MaxRecvMsgSize))
659 opts = append(opts, grpc.MaxCallSendMsgSize(cfg.MaxSendMsgSize))
660 if cfg.GRPCCompression != "" {
661 opts = append(opts, grpc.UseCompressor(cfg.GRPCCompression))
662 }
663 return opts
664}
665
666// DialOption returns the config as a grpc.DialOptions.
667func (cfg *grpcConfig) DialOption() ([]grpc.DialOption, error) {

Callers 2

DialOptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected