Merge branch 'dev-lwl/fix' into test
This commit is contained in:
commit
8bfc15b41a
|
@ -1470,14 +1470,14 @@ var ZoneVIPMidMap = map[int64]bool{
|
|||
}
|
||||
|
||||
func IsZoneVIP(mid int64) bool {
|
||||
cfg := &apollostruct.ZoneVIPConfig{}
|
||||
_ = apollo.GetJson(consts.ZoneVIPConfigKey, cfg, apollo.ApolloOpts().SetNamespace("zone"))
|
||||
if util.Int64Contains(cfg.WhiteMids, mid) {
|
||||
if mid == 161 {
|
||||
logger.Info("_ZoneVip Apollo, mids: %v", cfg.WhiteMids)
|
||||
}
|
||||
return true
|
||||
}
|
||||
//cfg := &apollostruct.ZoneVIPConfig{}
|
||||
//_ = apollo.GetJson(consts.ZoneVIPConfigKey, cfg, apollo.ApolloOpts().SetNamespace("zone"))
|
||||
//if util.Int64Contains(cfg.WhiteMids, mid) {
|
||||
// if mid == 161 {
|
||||
// logger.Info("_ZoneVip Apollo, mids: %v", cfg.WhiteMids)
|
||||
// }
|
||||
// return true
|
||||
//}
|
||||
return ZoneVIPMidMap[mid]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue