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

Function setRecvBufferPool

benchmark/benchmain/main.go:911–922  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

909}
910
911func setRecvBufferPool(val string) []string {
912 switch val {
913 case recvBufferPoolNil, recvBufferPoolSimple:
914 return []string{val}
915 case recvBufferPoolAll:
916 return []string{recvBufferPoolNil, recvBufferPoolSimple}
917 default:
918 // This should never happen because a wrong value passed to this flag would
919 // be caught during flag.Parse().
920 return []string{}
921 }
922}
923
924func main() {
925 opts := processFlags()

Callers 1

processFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected