Commit ff0bef4e authored by vicotor's avatar vicotor

fix bug

parent 3eaab2bd
...@@ -18,10 +18,11 @@ type Node struct { ...@@ -18,10 +18,11 @@ type Node struct {
} }
func NewNode() *Node { func NewNode() *Node {
redisConfig := config.GetConfig().Redis
rdb := utils.NewRedisClient(utils.RedisConnParam{ rdb := utils.NewRedisClient(utils.RedisConnParam{
Addr: "", Addr: redisConfig.Addr,
Password: "", Password: redisConfig.Password,
DbIndex: 0, DbIndex: redisConfig.DbIndex,
}) })
node := &Node{ node := &Node{
rdb: rdb, rdb: rdb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment