Commit 54bcceef authored by Dominik Charousset's avatar Dominik Charousset

Forward remote_spawn with local node ID to system

parent b1dacd03
...@@ -161,6 +161,8 @@ public: ...@@ -161,6 +161,8 @@ public:
timespan timeout = timespan{std::chrono::minutes{1}}) { timespan timeout = timespan{std::chrono::minutes{1}}) {
if (!nid || name.empty()) if (!nid || name.empty())
return sec::invalid_argument; return sec::invalid_argument;
if (nid == system().node())
return system().spawn<Handle>(std::move(name), std::move(args));
auto res = remote_spawn_impl(nid, name, args, auto res = remote_spawn_impl(nid, name, args,
system().message_types<Handle>(), timeout); system().message_types<Handle>(), timeout);
if (!res) if (!res)
......
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