From 1ea76ca797fbf8c93cff952ece42e7c53764b820 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Sat, 6 Apr 2019 17:58:01 -0700 Subject: [PATCH] Remove `await` from respond in http_bench.ts (#324) --- http/http_bench.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http_bench.ts b/http/http_bench.ts index fa7d40bbcd..c4d7add0d4 100644 --- a/http/http_bench.ts +++ b/http/http_bench.ts @@ -8,7 +8,7 @@ const body = new TextEncoder().encode("Hello World"); async function main(): Promise { for await (const request of server) { - await request.respond({ status: 200, body }); + request.respond({ status: 200, body }); } }