forked from free-lancers/electricity_bill_calc_service
enhance(sync):同步管理路由添加
This commit is contained in:
@@ -18,10 +18,10 @@ func SetupRedisConnection() error {
|
||||
a := fmt.Sprintf("%s:%d", config.RedisSettings.Host, config.RedisSettings.Port)
|
||||
fmt.Println(a)
|
||||
Rd, err = rueidis.NewClient(rueidis.ClientOption{
|
||||
InitAddress: []string{"127.0.0.1:6379"},
|
||||
Password: "",
|
||||
SelectDB: config.RedisSettings.DB,
|
||||
DisableCache:true,
|
||||
InitAddress: []string{"192.168.88.129:6379"},
|
||||
Password: "123456",
|
||||
SelectDB: config.RedisSettings.DB,
|
||||
DisableCache: true,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user