Fix lint errors
This commit is contained in:
parent
994d6ccdbf
commit
d1af8aaf7e
6 changed files with 15 additions and 21 deletions
|
|
@ -50,7 +50,6 @@ import (
|
|||
"github.com/sagernet/gvisor/pkg/tcpip/header"
|
||||
"github.com/sagernet/gvisor/pkg/tcpip/stack"
|
||||
rawfile "github.com/sagernet/sing-tun/internal/rawfile_darwin"
|
||||
"github.com/sagernet/sing/common"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
|
@ -301,7 +300,7 @@ func New(opts *Options) (stack.LinkEndpoint, error) {
|
|||
|
||||
e.fds = append(e.fds, fdInfo{fd: fd, isSocket: true})
|
||||
if opts.ProcessorsPerChannel == 0 {
|
||||
opts.ProcessorsPerChannel = common.Max(1, runtime.GOMAXPROCS(0)/len(opts.FDs))
|
||||
opts.ProcessorsPerChannel = max(1, runtime.GOMAXPROCS(0)/len(opts.FDs))
|
||||
}
|
||||
|
||||
inboundDispatcher, err := newRecvMMsgDispatcher(fd, e, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue