diff options
| author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-04-06 17:58:01 -0700 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-07 03:58:01 +0300 |
| commit | 9d1e24b67baf59d1d8b9bd1eb2a6c4135c6e7ca4 (patch) | |
| tree | bd0bf34152d2a637bf50734adfe71645a02aa487 /http/http_bench.ts | |
| parent | d9d77803e50ebeafbca9d29dae40b96150ecb0dd (diff) | |
Remove `await` from respond in http_bench.ts (denoland/deno_std#324)
Original: https://github.com/denoland/deno_std/commit/1ea76ca797fbf8c93cff952ece42e7c53764b820
Diffstat (limited to 'http/http_bench.ts')
| -rw-r--r-- | http/http_bench.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_bench.ts b/http/http_bench.ts index fa7d40bbc..c4d7add0d 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<void> { for await (const request of server) { - await request.respond({ status: 200, body }); + request.respond({ status: 200, body }); } } |
