Skip to content

Commit f48ac0f

Browse files
authored
Fix warnings in example (#287)
1 parent c3cae8f commit f48ac0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/8-KafkaToHttpServer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ void httpServer(tcp::acceptor& acceptor, tcp::socket& socket) {
110110
if (!ec) {
111111
auto connection = std::make_shared<httpConnection>(std::move(socket));
112112
connection->addCallback("SHOW+RETENTION+POLICIES",
113-
[](http::request<http::dynamic_body>& request, http::response<http::dynamic_body>& response) {
113+
[](http::request<http::dynamic_body>& /*request*/, http::response<http::dynamic_body>& response) {
114114
response.set(http::field::content_type, "application/json");
115115
beast::ostream(response.body()) << "{}\n";
116116
});
117117
connection->addCallback("SHOW+TAG+VALUES+FROM",
118-
[](http::request<http::dynamic_body>& request, http::response<http::dynamic_body>& response) {
118+
[](http::request<http::dynamic_body>& /*request*/, http::response<http::dynamic_body>& response) {
119119
std::string jsonPrefix = R"({"results": [{"statement_id": 0, "series": [{"name": "env_active", "columns": ["key", "value"], "values": [)";
120120
std::string jsonSuffix = R"(]}]}]})";
121121
response.set(http::field::content_type, "application/json");

0 commit comments

Comments
 (0)