瀏覽代碼

test http_async_handler

hewei.it 4 年之前
父節點
當前提交
8e845e60f7
共有 1 個文件被更改,包括 0 次插入1 次删除
  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");