summaryrefslogtreecommitdiff
path: root/cli/bench/http/deno_reactdom_ssr_flash.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/http/deno_reactdom_ssr_flash.jsx')
-rw-r--r--cli/bench/http/deno_reactdom_ssr_flash.jsx12
1 files changed, 3 insertions, 9 deletions
diff --git a/cli/bench/http/deno_reactdom_ssr_flash.jsx b/cli/bench/http/deno_reactdom_ssr_flash.jsx
index 0d749c634..42c955624 100644
--- a/cli/bench/http/deno_reactdom_ssr_flash.jsx
+++ b/cli/bench/http/deno_reactdom_ssr_flash.jsx
@@ -18,12 +18,6 @@ const headers = {
},
};
-serve(
- {
- fetch: async () => {
- return new Response(await renderToReadableStream(<App />), headers);
- },
- hostname,
- port,
- },
-);
+serve({ hostname, port }, async () => {
+ return new Response(await renderToReadableStream(<App />), headers);
+});