mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-07-28 07:52:50 +02:00
global: replaced unused function params with _
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
8a2b2bf4f4
commit
ace3e11ef2
5 changed files with 6 additions and 6 deletions
|
@ -7,6 +7,6 @@
|
||||||
|
|
||||||
package conn
|
package conn
|
||||||
|
|
||||||
func errShouldDisableUDPGSO(err error) bool {
|
func errShouldDisableUDPGSO(_ error) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,6 @@ package conn
|
||||||
|
|
||||||
import "net"
|
import "net"
|
||||||
|
|
||||||
func supportsUDPOffload(conn *net.UDPConn) (txOffload, rxOffload bool) {
|
func supportsUDPOffload(_ *net.UDPConn) (txOffload, rxOffload bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ func TestCommonBits(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func benchmarkTrie(peerNumber, addressNumber, addressLength int, b *testing.B) {
|
func benchmarkTrie(peerNumber, addressNumber, _ int, b *testing.B) {
|
||||||
var trie *trieEntry
|
var trie *trieEntry
|
||||||
var peers []*Peer
|
var peers []*Peer
|
||||||
root := parentIndirection{&trie, 2}
|
root := parentIndirection{&trie, 2}
|
||||||
|
|
|
@ -7,6 +7,6 @@ import (
|
||||||
"github.com/amnezia-vpn/amneziawg-go/rwcancel"
|
"github.com/amnezia-vpn/amneziawg-go/rwcancel"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {
|
func (device *Device) startRouteListener(_ conn.Bind) (*rwcancel.RWCancel, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* Currently there is no way to achieve this within the net package:
|
* Currently there is no way to achieve this within the net package:
|
||||||
* See e.g. https://github.com/golang/go/issues/17930
|
* See e.g. https://github.com/golang/go/issues/17930
|
||||||
* So this code is remains platform dependent.
|
* So this code remains platform dependent.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package device
|
package device
|
||||||
|
@ -47,7 +47,7 @@ func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, er
|
||||||
return netlinkCancel, nil
|
return netlinkCancel, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (device *Device) routineRouteListener(bind conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
|
func (device *Device) routineRouteListener(_ conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel) {
|
||||||
type peerEndpointPtr struct {
|
type peerEndpointPtr struct {
|
||||||
peer *Peer
|
peer *Peer
|
||||||
endpoint *conn.Endpoint
|
endpoint *conn.Endpoint
|
||||||
|
|
Loading…
Add table
Reference in a new issue