Add start registering service with thread
authoryoubowu <wu.youbo@zte.com.cn>
Fri, 10 Mar 2017 06:10:59 +0000 (14:10 +0800)
committer6092002067 <wu.youbo@zte.com.cn>
Fri, 10 Mar 2017 06:13:47 +0000 (14:13 +0800)
Issue-ID: HOLMES-50

Change-Id: I7c1aeb6c9aab178b4b52575aa801c4ab0885dd06
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java

index 1de431e..8b38419 100644 (file)
@@ -37,7 +37,6 @@ import org.openo.holmes.common.constant.AlarmConst;
 public class MSBRegisterUtil {\r
 \r
     public void register(ServiceRegisterEntity entity) throws IOException {\r
-        ((Runnable) () -> {\r
             log.info("start inventory micro service register");\r
             boolean flag = false;\r
             int retry = 0;\r
@@ -54,7 +53,6 @@ public class MSBRegisterUtil {
                 }\r
             }\r
             log.info("holmes micro service register end.");\r
-        }).run();\r
     }\r
 \r
     private void setHeader(HttpRequestBase httpRequestBase) {\r