fix(apigateway): api_server changed

This commit is contained in:
Qu Xuan
2021-10-27 19:37:05 +08:00
parent 0ff3227ced
commit e4fa104f71

View File

@@ -53,6 +53,10 @@ func OnBaseOptionsChange(oOpts, nOpts interface{}) bool {
if oldOpts.EnableQuotaCheck != newOpts.EnableQuotaCheck {
consts.SetEnableQuotaCheck(newOpts.EnableQuotaCheck)
}
if oldOpts.ApiServer != newOpts.ApiServer {
log.Debugf("api_server changed from %d to %d", oldOpts.ApiServer, newOpts.ApiServer)
changed = true
}
return changed
}