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 {
|
func IsZoneVIP(mid int64) bool {
|
||||||
cfg := &apollostruct.ZoneVIPConfig{}
|
//cfg := &apollostruct.ZoneVIPConfig{}
|
||||||
_ = apollo.GetJson(consts.ZoneVIPConfigKey, cfg, apollo.ApolloOpts().SetNamespace("zone"))
|
//_ = apollo.GetJson(consts.ZoneVIPConfigKey, cfg, apollo.ApolloOpts().SetNamespace("zone"))
|
||||||
if util.Int64Contains(cfg.WhiteMids, mid) {
|
//if util.Int64Contains(cfg.WhiteMids, mid) {
|
||||||
if mid == 161 {
|
// if mid == 161 {
|
||||||
logger.Info("_ZoneVip Apollo, mids: %v", cfg.WhiteMids)
|
// logger.Info("_ZoneVip Apollo, mids: %v", cfg.WhiteMids)
|
||||||
}
|
// }
|
||||||
return true
|
// return true
|
||||||
}
|
//}
|
||||||
return ZoneVIPMidMap[mid]
|
return ZoneVIPMidMap[mid]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue