mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Linter errors fixes
This commit is contained in:
parent
ae954bad35
commit
a24fde3081
4 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,6 @@ import (
|
|||
// The Core object represents the Mesh node. You should create a Core
|
||||
// object for each Mesh node you plan to run.
|
||||
type Core struct {
|
||||
|
||||
// This is the main data structure that holds everything else for a node
|
||||
// We're going to keep our own copy of the provided config - that way we can
|
||||
// guarantee that it will be covered by the mutex
|
||||
|
|
|
@ -108,6 +108,8 @@ func (l *linkMPATH) handler(dial *linkDial, name string, info linkInfo, conn net
|
|||
}
|
||||
|
||||
// Returns the address of the listener.
|
||||
//
|
||||
//nolint:unused
|
||||
func (l *linkMPATH) getAddr() *net.TCPAddr {
|
||||
// TODO: Fix this, because this will currently only give a single address
|
||||
// to multicast.go, which obviously is not great, but right now multicast.go
|
||||
|
|
|
@ -31,6 +31,7 @@ func (t *linkMPATH) tcpContext(network, address string, c syscall.RawConn) error
|
|||
return nil
|
||||
}
|
||||
|
||||
//nolint:unused
|
||||
func (t *linkMPATH) getControl(sintf string) func(string, string, syscall.RawConn) error {
|
||||
return func(network, address string, c syscall.RawConn) error {
|
||||
var err error
|
||||
|
|
|
@ -153,6 +153,8 @@ func (l *linkSCTP) handler(dial *linkDial, name string, info linkInfo, conn net.
|
|||
}
|
||||
|
||||
// Returns the address of the listener.
|
||||
//
|
||||
//nolint:unused
|
||||
func (l *linkSCTP) getAddr() *net.TCPAddr {
|
||||
// TODO: Fix this, because this will currently only give a single address
|
||||
// to multicast.go, which obviously is not great, but right now multicast.go
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue