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

Function acceptedCompressorAllows

rpc_util.go:187–200  ·  view source on GitHub ↗
(allowed []string, name string)

Source from the content-addressed store, hash-verified

185}
186
187func acceptedCompressorAllows(allowed []string, name string) bool {
188 if allowed == nil {
189 return true
190 }
191 if name == "" || name == encoding.Identity {
192 return true
193 }
194 for _, a := range allowed {
195 if a == name {
196 return true
197 }
198 }
199 return false
200}
201
202func defaultCallInfo() *callInfo {
203 return &callInfo{

Callers 2

recvMsgMethod · 0.85
RecvMsgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected