Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed May 16, 2024
1 parent 0dbebbc commit 279266b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions conn_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ import (
"time"
)

var (
// used to reset toWrite struct to empty value.
emptyToWrite = toWrite{}

// poolToWrite = sync.Pool{
// New: func() interface{} {
// return &toWrite{}
// },
// }
)
// var (
// used to reset toWrite struct to empty value.
// emptyToWrite = toWrite{}

// poolToWrite = sync.Pool{
// New: func() interface{} {
// return &toWrite{}
// },
// }
// )

func (c *Conn) newToWriteBuf(buf []byte) {
c.left += len(buf)
Expand Down
1 change: 0 additions & 1 deletion nbhttp/websocket/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ type Conn struct {
msgType MessageType
message []byte
bytesCached []byte
parsing uint32

Engine *nbhttp.Engine
Execute func(f func()) bool
Expand Down

0 comments on commit 279266b

Please sign in to comment.