From 0c25ed087516459f8c6587976a39a8854c639d45 Mon Sep 17 00:00:00 2001 From: jbrinkman Date: Thu, 6 Feb 2025 10:18:17 -0500 Subject: [PATCH] fix build error Signed-off-by: jbrinkman --- go/benchmarks/main.go | 4 +++- go/examples/main.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go/benchmarks/main.go b/go/benchmarks/main.go index f691ae07c2..4be1770003 100644 --- a/go/benchmarks/main.go +++ b/go/benchmarks/main.go @@ -12,6 +12,8 @@ import ( "regexp" "strconv" "strings" + + "github.com/valkey-io/valkey-glide/go/glide/api" ) type options struct { @@ -78,7 +80,7 @@ func parseArguments() *options { concurrentTasks := flag.String("concurrentTasks", "[1 10 100 1000]", "Number of concurrent tasks") clientNames := flag.String("clients", "all", "One of: all|go-redis|glide") host := flag.String("host", api.DefaultHost, "Hostname") - port := flag.Int("port", api.DefaultPost, "Port number") + port := flag.Int("port", api.DefaultPort, "Port number") clientCount := flag.String("clientCount", "[1]", "Number of clients to run") tls := flag.Bool("tls", false, "Use TLS") clusterModeEnabled := flag.Bool("clusterModeEnabled", false, "Is cluster mode enabled") diff --git a/go/examples/main.go b/go/examples/main.go index d6b84f0a4f..d355373cc4 100644 --- a/go/examples/main.go +++ b/go/examples/main.go @@ -12,7 +12,7 @@ import ( // TODO: Update the file based on the template used in other clients. func main() { host := api.DefaultHost - port := api.DefaultPost + port := api.DefaultPort config := api.NewGlideClientConfiguration(). WithAddress(&api.NodeAddress{Host: host, Port: port})