Browse Source

test http_async_handler

hewei.it 4 years ago
parent
commit
8e845e60f7
1 changed files with 0 additions and 1 deletions
  1. 0 1
      examples/httpd/router.h

+ 0 - 1
examples/httpd/router.h

@@ -55,7 +55,6 @@ public:
             writer->response->headers["X-Request-tid"] = hv::to_string(hv_gettid());
             std::async([req, writer](){
                 writer->Begin();
-                std::string resp_tid = hv::to_string(hv_gettid());
                 writer->response->headers["X-Response-tid"] = hv::to_string(hv_gettid());
                 writer->WriteHeader("Content-Type", "text/plain");
                 writer->WriteBody("This is an async response.\n");