Commit 4570e807 authored by Dominik Charousset's avatar Dominik Charousset

Port caf_net to latest CAF API

parent 6bfe920c
...@@ -75,6 +75,9 @@ public: ...@@ -75,6 +75,9 @@ public:
return result.release(); return result.release();
} }
/// Adds module-specific options to the config before loading the module.
static void add_module_options(actor_system_config& cfg);
// -- remoting --------------------------------------------------------------- // -- remoting ---------------------------------------------------------------
expected<endpoint_manager_ptr> connect(const uri& locator); expected<endpoint_manager_ptr> connect(const uri& locator);
......
...@@ -96,6 +96,10 @@ void* middleman::subtype_ptr() { ...@@ -96,6 +96,10 @@ void* middleman::subtype_ptr() {
return this; return this;
} }
void middleman::add_module_options(actor_system_config&) {
// nop
}
expected<endpoint_manager_ptr> middleman::connect(const uri& locator) { expected<endpoint_manager_ptr> middleman::connect(const uri& locator) {
if (auto ptr = backend(locator.scheme())) if (auto ptr = backend(locator.scheme()))
return ptr->get_or_connect(locator); return ptr->get_or_connect(locator);
......
...@@ -47,6 +47,10 @@ struct dummy_actor : public monitorable_actor { ...@@ -47,6 +47,10 @@ struct dummy_actor : public monitorable_actor {
void enqueue(mailbox_element_ptr, execution_unit*) override { void enqueue(mailbox_element_ptr, execution_unit*) override {
// nop // nop
} }
void setup_metrics() {
// nop
}
}; };
class dummy_application { class dummy_application {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment