Skip to content

Commit 7611df5

Browse files
author
rezra3
committed
codeine-243 register peer in consul - changed to TCP health check
1 parent 8f30317 commit 7611df5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/codeine/AbstractCodeineBootstrap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ protected static void boot(String component, Class<? extends AbstractCodeineBoot
7070
protected void registerInConsul(String name, int port) {
7171
if (injector.getInstance(GlobalConfigurationJsonStore.class).get().consul_registration()) {
7272
ConsulRegistrator consulRegistrator = injector.getInstance(ConsulRegistrator.class);
73+
consulRegistrator.init();
7374
if (consulRegistrator.consulExists()) {
7475
consulRegistrator.register(name, port);
7576
Runtime.getRuntime().addShutdownHook(new Thread(() -> deregisterFromConsul(name)));

0 commit comments

Comments
 (0)