Skip to content

Commit

Permalink
Fix: gvisor gonet api
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Jan 27, 2024
1 parent 4736921 commit e6381b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func withUDPHandler(handle func(adapter.UDPConn)) option.Option {
}

conn := &udpConn{
UDPConn: gonet.NewUDPConn(s, &wq, ep),
UDPConn: gonet.NewUDPConn(&wq, ep),
id: id,
}
handle(conn)
Expand Down

0 comments on commit e6381b2

Please sign in to comment.