Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Apr 19, 2024
1 parent 0713a63 commit 11411b3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions eventloop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ const iovMax = 1024

func (el *eventloop) write(c *conn) error {
if c.outboundBuffer.IsEmpty() {
if c.isEOF {
el.getLogger().Warnf("empty outbound buffer, skip writing to fd=%d, EOF=%t", c.fd, c.isEOF)
}
return nil
}

Expand All @@ -178,9 +175,6 @@ loop:
n, err = unix.Write(c.fd, iov[0])
}
_, _ = c.outboundBuffer.Discard(n)
if c.isEOF {
el.getLogger().Warnf("writev(fd=%d)=%d, error: %v", c.fd, n, err)
}
switch err {
case nil:
case unix.EAGAIN:
Expand Down

0 comments on commit 11411b3

Please sign in to comment.