You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2023/07/26 03:10:00 UTC

[dubbo] branch 3.2 updated: Check if delay is -1 before property for manual publish (#12794)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.2 by this push:
     new 5caa8524a9 Check if delay is -1 before property for manual publish (#12794)
5caa8524a9 is described below

commit 5caa8524a9a55d18145dec6c39cc886b89c84a96
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Wed Jul 26 11:09:55 2023 +0800

    Check if delay is -1 before property for manual publish (#12794)
---
 .../src/main/java/org/apache/dubbo/config/ServiceConfig.java            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
index 660281746c..0c2161ba0e 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
@@ -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