Check if delay is -1 before property for manual publish (#12794)

This commit is contained in:
Albumen Kevin 2023-07-26 11:09:55 +08:00 committed by GitHub
parent 879fd81128
commit 5caa8524a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class ServiceConfig<T> extends ServiceConfigBase<T> {
if (shouldDelay()) {
// should register if delay export
doDelayExport();
} else if (
} else if (Integer.valueOf(-1).equals(getDelay()) &&
Boolean.parseBoolean(ConfigurationUtils.getProperty(
getScopeModel(), CommonConstants.DUBBO_MANUAL_REGISTER_KEY, "false"))) {
// should not register by default