Skip to content

Commit

Permalink
update demo (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
123liuziming committed Sep 2, 2024
1 parent 7af7eb8 commit 91db2e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/demo/pkgs/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ var err error

func InitNetwork() {
rdb = redis.NewClient(&redis.Options{
Addr: "r-uf6x51fdb6tqmrmisq.redis.rds.aliyuncs.com:6379",
Password: "Hello1234",
Addr: "127.0.0.1:6379",
Password: "test",
})
_ = redis.NewFailoverClient(&redis.FailoverOptions{
MaxRetries: 3,
})

_ = redis.NewRing(&redis.RingOptions{})
_ = redis.NewClusterClient(&redis.ClusterOptions{})
mysql.ParseDSN("root:arms@123@tcp(rm-uf65qlp1f3q8752sd.mysql.rds.aliyuncs.com:3306)/mysqldb")
mysql.ParseDSN("test:test@tcp(127.0.0.1:3306)/test")
db, err = sql.Open("mysql",
"root:arms@123@tcp(rm-uf65qlp1f3q8752sd.mysql.rds.aliyuncs.com:3306)/mysqldb")
"test:test@tcp(127.0.0.1:3306)/test")
if err != nil {
return
}
Expand Down

0 comments on commit 91db2e6

Please sign in to comment.