Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Mar 21, 2024
1 parent 8126d7b commit 980a36d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions go/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
package main

import (
"log"
"log"

"github.com/aws/glide-for-redis/go/glide/api"
"github.com/aws/glide-for-redis/go/glide/api"
)

func main() {
host := "localhost"
port := 6379
host := "localhost"
port := 6379

config := api.NewRedisClientConfiguration().
WithAddress(&api.NodeAddress{Host: host, Port: port})
config := api.NewRedisClientConfiguration().
WithAddress(&api.NodeAddress{Host: host, Port: port})

client, err := api.NewRedisClient(config)
if err != nil {
log.Fatal("error connecting to database: ", err)
}
client, err := api.NewRedisClient(config)
if err != nil {
log.Fatal("error connecting to database: ", err)
}

// TODO: Add example commands as they are implemented
// TODO: Add example commands as they are implemented

client.Close()
client.Close()
}

0 comments on commit 980a36d

Please sign in to comment.