summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-26 14:54:03 +0200
committerGitHub <noreply@github.com>2023-04-26 14:54:03 +0200
commit1b450015e7046bff952b2841e73074d432006272 (patch)
treecc9e5f44ad1c98eae4d3461de478a8b080100060 /cli/bench
parent036778c2e8e159ef1e586de4102f823367b7c554 (diff)
BREAKING(unstable): remove "Deno.serve(handler, options)" overload (#18759)
In preparation to stabilization of the API this overload was decided to be removed.
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/http/deno_flash_hono_router.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/http/deno_flash_hono_router.js b/cli/bench/http/deno_flash_hono_router.js
index ef78849b2..062c37cbf 100644
--- a/cli/bench/http/deno_flash_hono_router.js
+++ b/cli/bench/http/deno_flash_hono_router.js
@@ -7,4 +7,4 @@ const [hostname, port] = addr.split(":");
const app = new Hono();
app.get("/", (c) => c.text("Hello, World!"));
-Deno.serve(app.fetch, { port: Number(port), hostname });
+Deno.serve({ port: Number(port), hostname }, app.fetch);