From a24fde3081ca2d0acee2a7ff899af4831b4ab4e7 Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Sun, 11 Dec 2022 19:35:49 +0200 Subject: [PATCH] Linter errors fixes --- src/core/core.go | 1 - src/core/link_mpath.go | 2 ++ src/core/link_mpath_linux.go | 1 + src/core/link_sctp_linux.go | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/core.go b/src/core/core.go index 58b383d9..67a4fb55 100644 --- a/src/core/core.go +++ b/src/core/core.go @@ -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 diff --git a/src/core/link_mpath.go b/src/core/link_mpath.go index 086048d1..40923425 100644 --- a/src/core/link_mpath.go +++ b/src/core/link_mpath.go @@ -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 diff --git a/src/core/link_mpath_linux.go b/src/core/link_mpath_linux.go index 29f43b54..cc950aae 100644 --- a/src/core/link_mpath_linux.go +++ b/src/core/link_mpath_linux.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 diff --git a/src/core/link_sctp_linux.go b/src/core/link_sctp_linux.go index f0b13a66..4f934ecf 100644 --- a/src/core/link_sctp_linux.go +++ b/src/core/link_sctp_linux.go @@ -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