File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -493,15 +493,6 @@ func (c *connection) WriteData(ctx context.Context, data Buffer) {
493493
494494func (c * connection ) internalWriteData (ctx context.Context , data Buffer ) {
495495 c .log .Debug ("Write data: " , data .ReadableBytes ())
496- if ctx == nil {
497- if _ , err := c .cnx .Write (data .ReadableSlice ()); err != nil {
498- c .log .WithError (err ).Warn ("Failed to write on connection" )
499- c .Close ()
500- }
501-
502- return
503- }
504-
505496 select {
506497 case <- ctx .Done ():
507498 return
@@ -534,7 +525,7 @@ func (c *connection) writeCommand(cmd *pb.BaseCommand) {
534525 }
535526
536527 c .writeBuffer .WrittenBytes (cmdSize )
537- c .internalWriteData (nil , c .writeBuffer )
528+ c .internalWriteData (context . Background () , c .writeBuffer )
538529}
539530
540531func (c * connection ) receivedCommand (cmd * pb.BaseCommand , headersAndPayload Buffer ) {
You can’t perform that action at this time.
0 commit comments