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

Function makeFuncUnconstrainedStreamPreloaded

benchmark/benchmain/main.go:466–476  ·  view source on GitHub ↗
(bf stats.Features)

Source from the content-addressed store, hash-verified

464}
465
466func makeFuncUnconstrainedStreamPreloaded(bf stats.Features) (rpcSendFunc, rpcRecvFunc, rpcCleanupFunc) {
467 streams, req, cleanup := setupStream(bf, true)
468
469 preparedMsg := prepareMessages(streams, req)
470
471 return func(cn, pos int) {
472 streams[cn][pos].SendMsg(preparedMsg[cn][pos])
473 }, func(cn, pos int) {
474 streams[cn][pos].Recv()
475 }, cleanup
476}
477
478func makeFuncUnconstrainedStream(bf stats.Features) (rpcSendFunc, rpcRecvFunc, rpcCleanupFunc) {
479 streams, req, cleanup := setupStream(bf, true)

Callers 1

Calls 4

setupStreamFunction · 0.85
prepareMessagesFunction · 0.85
SendMsgMethod · 0.65
RecvMethod · 0.65

Tested by

no test coverage detected