Skip to content

Commit a144d88

Browse files
Remove unused fields and methods for internal connection (#1306)
1 parent 92c6e28 commit a144d88

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

pulsar/internal/connection.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,6 @@ func (c *connection) checkServerError(err *pb.ServerError) {
625625
}
626626
}
627627

628-
func (c *connection) Write(data Buffer) {
629-
c.writeRequestsCh <- data
630-
}
631-
632628
func (c *connection) SendRequest(requestID uint64, req *pb.BaseCommand,
633629
callback func(command *pb.BaseCommand, err error)) {
634630
c.incomingRequestsWG.Add(1)

pulsar/internal/connection_reader.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package internal
1919

2020
import (
21-
"bufio"
2221
"fmt"
2322
"io"
2423

@@ -29,13 +28,11 @@ import (
2928
type connectionReader struct {
3029
cnx *connection
3130
buffer Buffer
32-
reader *bufio.Reader
3331
}
3432

3533
func newConnectionReader(cnx *connection) *connectionReader {
3634
return &connectionReader{
3735
cnx: cnx,
38-
reader: bufio.NewReader(cnx.cnx),
3936
buffer: NewBuffer(4096),
4037
}
4138
}

0 commit comments

Comments
 (0)