File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -348,10 +348,7 @@ func (r *rsocketClient) RequestChannel(
348348 sendingFlux := flux .Create (func (fluxCtx context.Context , sink flux.Sink ) {
349349 defer close (sendingDoneChan )
350350
351- // First, send the initial request payload
352- sink .Next (request )
353-
354- // Then, send payloads from the sink channel until it's closed or context is done
351+ // Send payloads from the sink channel until it's closed or context is done
355352 for {
356353 select {
357354 case p , ok := <- sinkPayloadChan :
@@ -368,7 +365,7 @@ func (r *rsocketClient) RequestChannel(
368365 }
369366 })
370367
371- receivingFlux := r .client .RequestChannel (sendingFlux )
368+ receivingFlux := r .client .RequestChannel (request , sendingFlux )
372369
373370 channelCtx , channelCancel := context .WithCancel (ctx )
374371 receivingPayloadChan , receivingErrChan := receivingFlux .ToChan (channelCtx , types .DefaultStreamBufferSize )
You can’t perform that action at this time.
0 commit comments