mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-13 05:31:08 +08:00
chore: make lint happy
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
linters-settings:
|
linters-settings:
|
||||||
errcheck:
|
errcheck:
|
||||||
ignore: fmt:.*,io/ioutil:^Read.*
|
|
||||||
ignoretests: true
|
ignoretests: true
|
||||||
exclude-functions:
|
exclude-functions:
|
||||||
- github.com/fumiama/WireGold/helper.(*Writer).Write.*
|
- fmt:.*
|
||||||
|
- io/ioutil:^Read.*
|
||||||
|
- github.com/fumiama/WireGold/helper.(*Writer).(Write.*)
|
||||||
- github.com/fumiama/WireGold/upper/services/tunnel.(*Tunnel).(Write|Read)
|
- github.com/fumiama/WireGold/upper/services/tunnel.(*Tunnel).(Write|Read)
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ func (m *Me) AddPeer(cfg *PeerConfig) (l *Link) {
|
|||||||
allowtrans: cfg.AllowTrans,
|
allowtrans: cfg.AllowTrans,
|
||||||
usezstd: cfg.UseZstd,
|
usezstd: cfg.UseZstd,
|
||||||
me: m,
|
me: m,
|
||||||
mtu: uint16(cfg.MTU),
|
mtu: cfg.MTU,
|
||||||
mturandomrange: uint16(cfg.MTURandomRange),
|
mturandomrange: cfg.MTURandomRange,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cfg.NoPipe {
|
if !cfg.NoPipe {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ func (n *NIC) Close() error {
|
|||||||
return n.ifce.Close()
|
return n.ifce.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint: unparam
|
||||||
func execute(c string, args ...string) {
|
func execute(c string, args ...string) {
|
||||||
logrus.Printf("[lower] exec cmd: %v %v:", c, args)
|
logrus.Printf("[lower] exec cmd: %v %v:", c, args)
|
||||||
cmd := exec.Command(c, args...)
|
cmd := exec.Command(c, args...)
|
||||||
|
|||||||
Reference in New Issue
Block a user