From f64f4e08fe2e1491a3ad44e50f8459c9f5b7d677 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 2 Mar 2024 18:48:26 +0000 Subject: [PATCH] cluster: remove unused variables on scan option factories Signed-off-by: Alejandro Mery --- pkg/cluster/cluster_scan_options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cluster/cluster_scan_options.go b/pkg/cluster/cluster_scan_options.go index 6a4b651..9081a77 100644 --- a/pkg/cluster/cluster_scan_options.go +++ b/pkg/cluster/cluster_scan_options.go @@ -27,7 +27,7 @@ type ScanOptions struct { // the DNS resolver to get PublicAddresses of nodes. // Default is true func ResolvePublicAddresses(resolve bool) ScanOption { - return func(m *Cluster, opt *ScanOptions) error { + return func(_ *Cluster, opt *ScanOptions) error { opt.DontResolvePublicAddresses = !resolve return nil } @@ -36,7 +36,7 @@ func ResolvePublicAddresses(resolve bool) ScanOption { // WithLookuper specifies what resolver.Lookuper to use to // find public addresses func WithLookuper(h resolver.Lookuper) ScanOption { - return func(m *Cluster, opt *ScanOptions) error { + return func(m *Cluster, _ *ScanOptions) error { if h == nil { return fs.ErrInvalid } @@ -49,7 +49,7 @@ func WithLookuper(h resolver.Lookuper) ScanOption { // public addresses. if nil is passed, the [net.Resolver] will be used. // The default is using Cloudflare's 1.1.1.1. func WithResolver(h resolver.Resolver) ScanOption { - return func(m *Cluster, opt *ScanOptions) error { + return func(m *Cluster, _ *ScanOptions) error { if h == nil { h = resolver.SystemResolver(true) }