Skip to content

Commit 9adc3ca

Browse files
committed
removed password from example
1 parent 2be61f4 commit 9adc3ca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

example/hset-struct/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func main() {
3131
ctx := context.Background()
3232

3333
rdb := redis.NewClient(&redis.Options{
34-
Addr: ":6379",
35-
Password: "Mafia1234",
34+
Addr: ":6379",
3635
})
3736
_ = rdb.FlushDB(ctx).Err()
3837

example/scan-struct/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ func main() {
2424
ctx := context.Background()
2525

2626
rdb := redis.NewClient(&redis.Options{
27-
Addr: ":6379",
28-
Password: "Mafia1234",
27+
Addr: ":6379",
2928
})
3029
_ = rdb.FlushDB(ctx).Err()
3130

0 commit comments

Comments
 (0)