Fire up Discovery as soon as enclave stuff has been initialised.
@@ -59,6 +59,7 @@ public class Main {
RuntimeContext runtimeContext = RuntimeContextFactory.newFactory().create(config);
com.quorum.tessera.enclave.EnclaveFactory.create().create(config);
+ Discovery.getInstance().onCreate();
LOGGER.debug("Creating service locator");
ServiceLocator serviceLocator = ServiceLocator.create();
@@ -70,8 +71,6 @@ public class Main {
services.forEach(o -> LOGGER.debug("Service : {}", o));
- Discovery.getInstance().onCreate();
-
runWebServer(config);
} catch (final ConstraintViolationException ex) {
