Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Feb 6, 2024
1 parent f6b96a1 commit 4a2f017
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions poller_epoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ func (p *poller) deleteEvent(fd int) error {

func newPoller(g *Engine, isListener bool, index int) (*poller, error) {
if isListener {
if len(g.addrs) == 0 {
if len(g.Addrs) == 0 {
panic("invalid listener num")
}

addr := g.addrs[index%len(g.addrs)]
ln, err := g.Listen(g.network, addr)
addr := g.Addrs[index%len(g.Addrs)]
ln, err := g.Listen(g.Network, addr)
if err != nil {
return nil, err
}
Expand All @@ -307,7 +307,7 @@ func newPoller(g *Engine, isListener bool, index int) (*poller, error) {
isListener: isListener,
pollType: "LISTENER",
}
if g.network == "unix" {
if g.Network == "unix" {
p.unixSockAddr = addr
}

Expand Down

0 comments on commit 4a2f017

Please sign in to comment.