Skip to content

Commit

Permalink
transport: remove unused bufWriter.onFlush() (#5464)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchsw authored Jun 28, 2022
1 parent 755bf5a commit c9b16c8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/transport/http_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,6 @@ type bufWriter struct {
batchSize int
conn net.Conn
err error

onFlush func()
}

func newBufWriter(conn net.Conn, batchSize int) *bufWriter {
Expand Down Expand Up @@ -360,9 +358,6 @@ func (w *bufWriter) Flush() error {
if w.offset == 0 {
return nil
}
if w.onFlush != nil {
w.onFlush()
}
_, w.err = w.conn.Write(w.buf[:w.offset])
w.offset = 0
return w.err
Expand Down

0 comments on commit c9b16c8

Please sign in to comment.