Skip to content

Commit

Permalink
fix compile example
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jun 12, 2024
1 parent 0563b21 commit 4c8138d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/cinatra/coro_http_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ class coro_http_server {
init_metrics();
set_http_handler<http_method::GET>(
url_path, [](coro_http_request &req, coro_http_response &res) {
std::string str = async_simple::coro::syncAwait(
ylt::default_metric_manager::serialize_static());
std::string str = ylt::default_metric_manager::serialize_static();
res.set_status_and_content(status_type::ok, std::move(str));
});
}
Expand Down

0 comments on commit 4c8138d

Please sign in to comment.