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:
parent
d9d77803e5
commit
9d1e24b67b
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ const body = new TextEncoder().encode("Hello World");
|
||||||
|
|
||||||
async function main(): Promise<void> {
|
async function main(): Promise<void> {
|
||||||
for await (const request of server) {
|
for await (const request of server) {
|
||||||
await request.respond({ status: 200, body });
|
request.respond({ status: 200, body });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue