1
0
hewei.it 4 жил өмнө
parent
commit
8e845e60f7

+ 0 - 1
examples/httpd/router.h

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