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

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 95f9837b3 [ISSUE apache#3059] fix start http-demo error caused by 
properties
     new dc8882a75 Merge pull request #3060 from epiao55/dev_fix_3059
95f9837b3 is described below

commit 95f9837b354517d75973b61a2f9e47bb87aad873
Author: Jett <[email protected]>
AuthorDate: Tue Feb 7 01:21:16 2023 +0800

    [ISSUE apache#3059] fix start http-demo error caused by properties
---
 .../java/org/apache/eventmesh/http/demo/sub/service/SubService.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java
 
b/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java
index 854b5b28b..4e04cb9b8 100644
--- 
a/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java
+++ 
b/eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java
@@ -67,6 +67,7 @@ public class SubService implements InitializingBean {
 
     @Override
     public void afterPropertiesSet() throws Exception {
+        properties = 
Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME);
         final String localIP = IPUtils.getLocalAddress();
         final String localPort = properties.getProperty(SERVER_PORT);
         final String eventmeshIP = 
properties.getProperty(ExampleConstants.EVENTMESH_IP);
@@ -87,8 +88,6 @@ public class SubService implements InitializingBean {
         eventMeshHttpConsumer.heartBeat(topicList, testURL);
         eventMeshHttpConsumer.subscribe(topicList, testURL);
 
-        properties = 
Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME);
-
         // Wait for all messaged to be consumed
         final Thread stopThread = new Thread(() -> {
             try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to