Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Jun 13, 2024
1 parent 9110d08 commit 6225d45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/createIndex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
2 changes: 1 addition & 1 deletion cmd/dropIndex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion cmd/listIndex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}

Expand Down

0 comments on commit 6225d45

Please sign in to comment.