Commit a59debd4 authored by Jakob Otto's avatar Jakob Otto

Fix Formatting of Files to match code style

parent 2ea9f43e
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#pragma once #pragma once
#include <string>
#include <cstddef> #include <cstddef>
#include <string>
#include <utility> #include <utility>
#include "caf/config.hpp" #include "caf/config.hpp"
...@@ -27,11 +27,7 @@ ...@@ -27,11 +27,7 @@
namespace caf { namespace caf {
namespace net { namespace net {
enum class receive_policy_flag : unsigned { enum class receive_policy_flag : unsigned { at_least, at_most, exactly };
at_least,
at_most,
exactly
};
inline std::string to_string(receive_policy_flag x) { inline std::string to_string(receive_policy_flag x) {
return x == receive_policy_flag::at_least return x == receive_policy_flag::at_least
...@@ -63,4 +59,3 @@ public: ...@@ -63,4 +59,3 @@ public:
} // namespace net } // namespace net
} // namespace caf } // namespace caf
...@@ -97,7 +97,8 @@ public: ...@@ -97,7 +97,8 @@ public:
// try to write leftover data! // try to write leftover data!
write_some(parent); write_some(parent);
// get new data from parent // get new data from parent
for (auto msg = parent.next_message(); msg != nullptr; msg = parent.next_message()) { for (auto msg = parent.next_message(); msg != nullptr;
msg = parent.next_message()) {
parent.application().prepare(std::move(msg), *this); parent.application().prepare(std::move(msg), *this);
} }
// write prepared data // write prepared data
...@@ -118,8 +119,7 @@ public: ...@@ -118,8 +119,7 @@ public:
handle_error(parent, get<caf::sec>(sres)); handle_error(parent, get<caf::sec>(sres));
return false; return false;
} }
CAF_LOG_DEBUG(CAF_ARG(len) << CAF_ARG(handle_.id) CAF_LOG_DEBUG(CAF_ARG(len) << CAF_ARG(handle_.id) << CAF_ARG(sres));
<< CAF_ARG(sres));
auto result = (get<size_t>(sres) > 0) auto result = (get<size_t>(sres) > 0)
? static_cast<size_t>(get<size_t>(sres)) ? static_cast<size_t>(get<size_t>(sres))
: 0; : 0;
......
...@@ -62,6 +62,5 @@ std::vector<char>& scribe::wr_buf() { ...@@ -62,6 +62,5 @@ std::vector<char>& scribe::wr_buf() {
return write_buf_; return write_buf_;
} }
} // namespace policy } // namespace policy
} // namespace caf } // namespace caf
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