Commit ff0bef4e authored by vicotor's avatar vicotor

fix bug

parent 3eaab2bd
......@@ -18,10 +18,11 @@ type Node struct {
}
func NewNode() *Node {
redisConfig := config.GetConfig().Redis
rdb := utils.NewRedisClient(utils.RedisConnParam{
Addr: "",
Password: "",
DbIndex: 0,
Addr: redisConfig.Addr,
Password: redisConfig.Password,
DbIndex: redisConfig.DbIndex,
})
node := &Node{
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