From 68d998a253695a392b8adcee1f32cbcca992066c Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 5 Feb 2024 18:08:49 +0800 Subject: [PATCH] chore: code cleanup --- acceptor_bsd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acceptor_bsd.go b/acceptor_bsd.go index a1d0921e2..879897b85 100644 --- a/acceptor_bsd.go +++ b/acceptor_bsd.go @@ -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