소스 검색

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");