eddieraa/registry

subscribe to registry.register.{servicename} to when registry.getService( ) is called

Closed this issue · 1 comments

When a registered service is not available. Registry subscribe to "registry.register.{servicename} on each invocation of the getService func

INFO[0003] Services []
DEBU[0008] subscribe to: registry.register.httptest
DEBU[0008] subscribe to: registry.unregister.httptest
DEBU[0008] publish: registry.ping.httptest
INFO[0011] nb services 0
DEBU[0016] subscribe to: registry.register.httptest
DEBU[0016] subscribe to: registry.unregister.httptest
DEBU[0016] publish: registry.ping.httptest

A condition has been added to not trigger subscribe event twice