Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Feb 5, 2024
1 parent c85e9d2 commit 68d998a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptor_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ package gnet

import "github.com/panjf2000/gnet/v2/internal/netpoll"

func (eng *engine) accept(fd int, ev netpoll.IOEvent, flags netpoll.IOFlags) error {
return eng.accept1(fd, ev, flags)
func (eng *engine) accept(fd int, filter netpoll.IOEvent, flags netpoll.IOFlags) error {
return eng.accept1(fd, filter, flags)
}

func (el *eventloop) accept(fd int, ev netpoll.IOEvent, flags netpoll.IOFlags) error {
return el.accept1(fd, ev, flags)
func (el *eventloop) accept(fd int, filter netpoll.IOEvent, flags netpoll.IOFlags) error {
return el.accept1(fd, filter, flags)
}

// The canonical BSD sockets implementation will inherit file status flags
Expand Down

0 comments on commit 68d998a

Please sign in to comment.