basiliscos / cpp-rotor

Event loop friendly C++ actor micro-framework, supervisable
MIT License
344 stars 33 forks source link

allow discover aliased services (registry_plugin) #46

Closed basiliscos closed 2 years ago

basiliscos commented 2 years ago

When trying to link to an aliased service (i.e. the same address is exposed via different names) multiple times (due to transparency of aliased names), assert triggers:

rotor/src/rotor/plugin/link_client.cpp:52: virtual void rotor::plugin::link_client_plugin_t::link(const address_ptr_t&, bool, const link_callback_t&): Assertion `servers_map.count(address) == 0' failed.

The work around to create additional addresses in the service, and alias self via different addresses, but this is not handy.

basiliscos commented 2 years ago

done with v0.24