(next AsyncRoundTripper[combiner.PipelineResponse], consumers int, maxSegmentSize int, combiner combiner.GRPCCombiner[T], send func(T) error)
| 20 | } |
| 21 | |
| 22 | func NewGRPCCollector[T combiner.TResponse](next AsyncRoundTripper[combiner.PipelineResponse], consumers int, maxSegmentSize int, combiner combiner.GRPCCombiner[T], send func(T) error) *GRPCCollector[T] { |
| 23 | return &GRPCCollector[T]{ |
| 24 | next: next, |
| 25 | combiner: combiner, |
| 26 | consumers: consumers, |
| 27 | maxSegmentSize: maxSegmentSize, |
| 28 | send: send, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // RoundTrip implements the http.RoundTripper interface |
| 33 | func (c GRPCCollector[T]) RoundTrip(req *http.Request) error { |
no outgoing calls