(bf stats.Features)
| 417 | } |
| 418 | |
| 419 | func makeFuncUnary(bf stats.Features) (rpcCallFunc, rpcCleanupFunc) { |
| 420 | clients, cleanup := makeClients(bf) |
| 421 | return func(cn, _ int) { |
| 422 | reqSizeBytes := bf.ReqSizeBytes |
| 423 | respSizeBytes := bf.RespSizeBytes |
| 424 | if bf.ReqPayloadCurve != nil { |
| 425 | reqSizeBytes = bf.ReqPayloadCurve.ChooseRandom() |
| 426 | } |
| 427 | if bf.RespPayloadCurve != nil { |
| 428 | respSizeBytes = bf.RespPayloadCurve.ChooseRandom() |
| 429 | } |
| 430 | unaryCaller(clients[cn], reqSizeBytes, respSizeBytes) |
| 431 | }, cleanup |
| 432 | } |
| 433 | |
| 434 | func makeFuncStream(bf stats.Features) (rpcCallFunc, rpcCleanupFunc) { |
| 435 | streams, req, cleanup := setupStream(bf, false) |
no test coverage detected