Merge pull request #12538 from ioito/hotfix/qx-api-server-changed

fix(apigateway): api_server changed
This commit is contained in:
Zexi Li
2021-10-28 09:53:04 +08:00
committed by GitHub
+4
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
}