@@ -25,7 +25,7 @@ type InboundStreamHandler interface {
25
25
// Run is called once a FlowStream RPC is handled and a stream is obtained to
26
26
// make this stream accessible to the rest of the flow.
27
27
Run (
28
- ctx context.Context , stream execinfrapb.DistSQL_FlowStreamServer , firstMsg * execinfrapb.ProducerMessage , f * FlowBase ,
28
+ ctx context.Context , stream execinfrapb.RPCDistSQL_FlowStreamStream , firstMsg * execinfrapb.ProducerMessage , f * FlowBase ,
29
29
) error
30
30
// Timeout is called with an error, which results in the teardown of the
31
31
// stream strategy with the given error.
@@ -45,7 +45,7 @@ var _ InboundStreamHandler = RowInboundStreamHandler{}
45
45
// Run is part of the InboundStreamHandler interface.
46
46
func (s RowInboundStreamHandler ) Run (
47
47
ctx context.Context ,
48
- stream execinfrapb.DistSQL_FlowStreamServer ,
48
+ stream execinfrapb.RPCDistSQL_FlowStreamStream ,
49
49
firstMsg * execinfrapb.ProducerMessage ,
50
50
f * FlowBase ,
51
51
) error {
@@ -61,13 +61,13 @@ func (s RowInboundStreamHandler) Timeout(err error) {
61
61
s .ProducerDone ()
62
62
}
63
63
64
- // processInboundStream receives rows from a DistSQL_FlowStreamServer and sends
64
+ // processInboundStream receives rows from a RPCDistSQL_FlowStreamStream and sends
65
65
// them to a RowReceiver. Optionally processes an initial StreamMessage that was
66
66
// already received (because the first message contains the flow and stream IDs,
67
67
// it needs to be received before we can get here).
68
68
func processInboundStream (
69
69
ctx context.Context ,
70
- stream execinfrapb.DistSQL_FlowStreamServer ,
70
+ stream execinfrapb.RPCDistSQL_FlowStreamStream ,
71
71
firstMsg * execinfrapb.ProducerMessage ,
72
72
dst execinfra.RowReceiver ,
73
73
f * FlowBase ,
@@ -90,7 +90,7 @@ func processInboundStream(
90
90
91
91
func processInboundStreamHelper (
92
92
ctx context.Context ,
93
- stream execinfrapb.DistSQL_FlowStreamServer ,
93
+ stream execinfrapb.RPCDistSQL_FlowStreamStream ,
94
94
firstMsg * execinfrapb.ProducerMessage ,
95
95
dst execinfra.RowReceiver ,
96
96
f * FlowBase ,
@@ -173,7 +173,7 @@ func processInboundStreamHelper(
173
173
// producer that it doesn't need any more rows and the producer should drain. A
174
174
// signal is sent on stream to the producer to ask it to send metadata.
175
175
func sendDrainSignalToStreamProducer (
176
- ctx context.Context , stream execinfrapb.DistSQL_FlowStreamServer ,
176
+ ctx context.Context , stream execinfrapb.RPCDistSQL_FlowStreamStream ,
177
177
) error {
178
178
log .VEvent (ctx , 1 , "sending drain signal to producer" )
179
179
sig := execinfrapb.ConsumerSignal {DrainRequest : & execinfrapb.DrainRequest {}}
@@ -187,7 +187,7 @@ func sendDrainSignalToStreamProducer(
187
187
func processProducerMessage (
188
188
ctx context.Context ,
189
189
flowBase * FlowBase ,
190
- stream execinfrapb.DistSQL_FlowStreamServer ,
190
+ stream execinfrapb.RPCDistSQL_FlowStreamStream ,
191
191
dst execinfra.RowReceiver ,
192
192
sd * StreamDecoder ,
193
193
draining * bool ,
0 commit comments