1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00

Remove await from respond in http_bench.ts (#324)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-04-06 17:58:01 -07:00 committed by Ryan Dahl
parent 2b6222be9a
commit 1ea76ca797

View file

@ -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 });
}
}