1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00

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

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

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