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

bench: fix benchmarks (#19600)

This commit is contained in:
Bartek Iwańczuk 2023-06-24 10:36:15 +02:00 committed by GitHub
parent 76bff33a19
commit 9273cbb786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -8,4 +8,4 @@ function handler() {
return new Response("Hello World");
}
serve({ hostname, port, reusePort: true }, handler);
serve({ hostname, port: Number(port), reusePort: true }, handler);

View file

@ -18,6 +18,6 @@ const headers = {
},
};
serve({ hostname, port }, async () => {
serve({ hostname, port: Number(port) }, async () => {
return new Response(await renderToReadableStream(<App />), headers);
});