From 6225d45843e4ab5794e530c38977dd29b0c532db Mon Sep 17 00:00:00 2001 From: Jesse Schmidt Date: Thu, 13 Jun 2024 14:26:09 -0700 Subject: [PATCH] fix tests --- cmd/createIndex.go | 2 +- cmd/dropIndex.go | 2 +- cmd/listIndex.go | 2 +- cmd/utils.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/createIndex.go b/cmd/createIndex.go index 20ed67f..150086a 100644 --- a/cmd/createIndex.go +++ b/cmd/createIndex.go @@ -110,7 +110,7 @@ func newCreateIndexCmd() *cobra.Command { return nil }, RunE: func(_ *cobra.Command, _ []string) error { - hosts, isLoadBalancer := parseBothHostSeedsFlag(*createIndexFlags.seeds, *createIndexFlags.host) + hosts, isLoadBalancer := parseBothHostSeedsFlag(createIndexFlags.seeds, createIndexFlags.host) logger.Debug("parsed flags", slog.String(flagNameHost, createIndexFlags.host.String()), diff --git a/cmd/dropIndex.go b/cmd/dropIndex.go index 39907df..65b699c 100644 --- a/cmd/dropIndex.go +++ b/cmd/dropIndex.go @@ -79,7 +79,7 @@ func newDropIndexCommand() *cobra.Command { slog.Duration(flagNameTimeout, dropIndexFlags.timeout), ) - hosts, isLoadBalancer := parseBothHostSeedsFlag(*dropIndexFlags.seeds, *dropIndexFlags.host) + hosts, isLoadBalancer := parseBothHostSeedsFlag(dropIndexFlags.seeds, dropIndexFlags.host) ctx, cancel := context.WithTimeout(context.Background(), dropIndexFlags.timeout) defer cancel() diff --git a/cmd/listIndex.go b/cmd/listIndex.go index 2b90ffc..dcd8ccc 100644 --- a/cmd/listIndex.go +++ b/cmd/listIndex.go @@ -71,7 +71,7 @@ func newListIndexCmd() *cobra.Command { slog.Duration(flagNameTimeout, listIndexFlags.timeout), ) - hosts, isLoadBalancer := parseBothHostSeedsFlag(*listIndexFlags.seeds, *listIndexFlags.host) + hosts, isLoadBalancer := parseBothHostSeedsFlag(listIndexFlags.seeds, listIndexFlags.host) ctx, cancel := context.WithTimeout(context.Background(), listIndexFlags.timeout) defer cancel() diff --git a/cmd/utils.go b/cmd/utils.go index 6a22f95..7e973d6 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -6,7 +6,7 @@ import ( avs "github.com/aerospike/aerospike-proximus-client-go" ) -func parseBothHostSeedsFlag(seeds flags.SeedsSliceFlag, host flags.HostPortFlag) (avs.HostPortSlice, bool) { +func parseBothHostSeedsFlag(seeds *flags.SeedsSliceFlag, host *flags.HostPortFlag) (avs.HostPortSlice, bool) { isLoadBalancer := false hosts := avs.HostPortSlice{}