Skip to content

Commit f32d58b

Browse files
committed
fixed review findings
1 parent 64e52f2 commit f32d58b

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/boost.beast/error_handling.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
#include <boost/asio/strand.hpp>
77
#include <fmt/format.h>
88

9-
namespace beast = boost::beast;// from <boost/beast.hpp>
10-
namespace http = beast::http;// from <boost/beast/http.hpp>
11-
namespace asio = boost::asio;// from <boost/asio.hpp>
12-
using tcp = boost::asio::ip::tcp;// from <boost/asio/ip/tcp.hpp>
9+
// from <boost/beast.hpp>
10+
namespace beast = boost::beast;
11+
// from <boost/beast/http.hpp>
12+
namespace http = beast::http;
13+
// from <boost/asio.hpp>
14+
namespace asio = boost::asio;
15+
// from <boost/asio/ip/tcp.hpp>
16+
using tcp = boost::asio::ip::tcp;
1317

1418

1519
inline void fail(beast::error_code ec, char const *what) { fmt::format("FAILED {0}: {1}", what, ec.message()); }

src/boost.beast/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <cstdlib>
22
#include <memory>
3-
#include <string>
43
#include <thread>
54
#include <vector>
65
#include "listener.h"
@@ -28,4 +27,4 @@ int main()
2827
ioc.run();
2928

3029
return EXIT_SUCCESS;
31-
}
30+
}

src/boost.beast/request.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ template<class Body, class Allocator, class Send> inline void handleRequest(http
7272
return send(std::move(createResponse(req, http::status::internal_server_error, j)));
7373
}
7474
}
75-
}
75+
}

src/boost.beast/session.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ class Session : public std::enable_shared_from_this<Session>
110110
private:
111111
Session &m_self;
112112
};
113-
114113
beast::tcp_stream m_stream;
115114
beast::flat_buffer m_buffer;
116115
http::request<http::string_body> m_req;
117116
std::shared_ptr<void> m_res;
118117
sendLambda m_lambda;
119-
};
118+
};

0 commit comments

Comments
 (0)