Commit d9532e20 authored by Dominik Charousset's avatar Dominik Charousset

Integrate review feedback

parent 3d5ddb6e
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "caf/detail/core_export.hpp" #include "caf/detail/core_export.hpp"
#include "caf/timeout_definition.hpp" #include "caf/timeout_definition.hpp"
#include "caf/timespan.hpp"
namespace caf { namespace caf {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "caf/detail/type_traits.hpp" #include "caf/detail/type_traits.hpp"
#include "caf/none.hpp" #include "caf/none.hpp"
#include "caf/timeout_definition.hpp" #include "caf/timeout_definition.hpp"
#include "caf/timespan.hpp"
namespace caf { namespace caf {
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "caf/response_promise.hpp" #include "caf/response_promise.hpp"
#include "caf/skip.hpp" #include "caf/skip.hpp"
#include "caf/timeout_definition.hpp" #include "caf/timeout_definition.hpp"
#include "caf/timespan.hpp"
#include "caf/typed_response_promise.hpp" #include "caf/typed_response_promise.hpp"
#include "caf/variant.hpp" #include "caf/variant.hpp"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "caf/catch_all.hpp" #include "caf/catch_all.hpp"
#include "caf/detail/core_export.hpp" #include "caf/detail/core_export.hpp"
#include "caf/timeout_definition.hpp" #include "caf/timeout_definition.hpp"
#include "caf/timespan.hpp"
namespace caf::detail { namespace caf::detail {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "caf/interface_mismatch.hpp" #include "caf/interface_mismatch.hpp"
#include "caf/message_handler.hpp" #include "caf/message_handler.hpp"
#include "caf/system_messages.hpp" #include "caf/system_messages.hpp"
#include "caf/timespan.hpp"
#include "caf/detail/typed_actor_util.hpp" #include "caf/detail/typed_actor_util.hpp"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#pragma once #pragma once
#include <chrono>
#include <map> #include <map>
#include <memory> #include <memory>
#include <thread> #include <thread>
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
#include "caf/node_id.hpp" #include "caf/node_id.hpp"
#include "caf/proxy_registry.hpp" #include "caf/proxy_registry.hpp"
#include "caf/send.hpp" #include "caf/send.hpp"
#include "caf/timespan.hpp"
namespace caf::io { namespace caf::io {
...@@ -156,7 +158,7 @@ public: ...@@ -156,7 +158,7 @@ public:
template <class Handle> template <class Handle>
expected<Handle> expected<Handle>
remote_spawn(const node_id& nid, std::string name, message args, remote_spawn(const node_id& nid, std::string name, message args,
timespan timeout = timespan{60000000000}) { timespan timeout = timespan{std::chrono::minutes{1}}) {
if (!nid || name.empty()) if (!nid || name.empty())
return sec::invalid_argument; return sec::invalid_argument;
auto res = remote_spawn_impl(nid, name, args, auto res = remote_spawn_impl(nid, name, args,
......
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