From: youbowu Date: Fri, 10 Mar 2017 06:10:59 +0000 (+0800) Subject: Add start registering service with thread X-Git-Tag: release/mercury~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fcommon.git;a=commitdiff_plain;h=e881c690d8b10c7940044d10e6cded4e86398beb Add start registering service with thread Issue-ID: HOLMES-50 Change-Id: I7c1aeb6c9aab178b4b52575aa801c4ab0885dd06 Signed-off-by: youbowu --- diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java index 1de431e..8b38419 100644 --- a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java +++ b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java @@ -37,7 +37,6 @@ import org.openo.holmes.common.constant.AlarmConst; public class MSBRegisterUtil { public void register(ServiceRegisterEntity entity) throws IOException { - ((Runnable) () -> { log.info("start inventory micro service register"); boolean flag = false; int retry = 0; @@ -54,7 +53,6 @@ public class MSBRegisterUtil { } } log.info("holmes micro service register end."); - }).run(); } private void setHeader(HttpRequestBase httpRequestBase) {