Skip to content

Commit

Permalink
Fix warnings in example (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Apr 22, 2022
1 parent c3cae8f commit f48ac0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/8-KafkaToHttpServer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ void httpServer(tcp::acceptor& acceptor, tcp::socket& socket) {
if (!ec) {
auto connection = std::make_shared<httpConnection>(std::move(socket));
connection->addCallback("SHOW+RETENTION+POLICIES",
[](http::request<http::dynamic_body>& request, http::response<http::dynamic_body>& response) {
[](http::request<http::dynamic_body>& /*request*/, http::response<http::dynamic_body>& response) {
response.set(http::field::content_type, "application/json");
beast::ostream(response.body()) << "{}\n";
});
connection->addCallback("SHOW+TAG+VALUES+FROM",
[](http::request<http::dynamic_body>& request, http::response<http::dynamic_body>& response) {
[](http::request<http::dynamic_body>& /*request*/, http::response<http::dynamic_body>& response) {
std::string jsonPrefix = R"({"results": [{"statement_id": 0, "series": [{"name": "env_active", "columns": ["key", "value"], "values": [)";
std::string jsonSuffix = R"(]}]}]})";
response.set(http::field::content_type, "application/json");
Expand Down

0 comments on commit f48ac0f

Please sign in to comment.