Skip to content

Commit

Permalink
chore: fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Nov 27, 2022
1 parent f172799 commit 7968cec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,15 @@ func (c *conn) OutboundBuffered() int {
return c.outboundBuffer.Buffered()
}

func (c *conn) SetDeadline(_ time.Time) error {
func (*conn) SetDeadline(_ time.Time) error {
return gerrors.ErrUnsupportedOp
}

func (c *conn) SetReadDeadline(_ time.Time) error {
func (*conn) SetReadDeadline(_ time.Time) error {
return gerrors.ErrUnsupportedOp
}

func (c *conn) SetWriteDeadline(_ time.Time) error {
func (*conn) SetWriteDeadline(_ time.Time) error {
return gerrors.ErrUnsupportedOp
}

Expand Down
2 changes: 1 addition & 1 deletion internal/netpoll/kqueue_default_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,6 @@ func (p *Poller) ModReadWrite(pa *PollAttachment) error {
}

// Delete removes the given file-descriptor from the poller.
func (p *Poller) Delete(_ int) error {
func (*Poller) Delete(_ int) error {
return nil
}
2 changes: 1 addition & 1 deletion load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (lb *sourceAddrHashLoadBalancer) register(el *eventloop) {
}

// hash converts a string to a unique hash code.
func (lb *sourceAddrHashLoadBalancer) hash(s string) int {
func (*sourceAddrHashLoadBalancer) hash(s string) int {
v := int(crc32.ChecksumIEEE(bs.StringToBytes(s)))
if v >= 0 {
return v
Expand Down

0 comments on commit 7968cec

Please sign in to comment.