From 9d1e24b67baf59d1d8b9bd1eb2a6c4135c6e7ca4 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 (denoland/deno_std#324) Original: https://github.com/denoland/deno_std/commit/1ea76ca797fbf8c93cff952ece42e7c53764b820 --- 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 }); } }