From 1b450015e7046bff952b2841e73074d432006272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 26 Apr 2023 14:54:03 +0200 Subject: BREAKING(unstable): remove "Deno.serve(handler, options)" overload (#18759) In preparation to stabilization of the API this overload was decided to be removed. --- cli/bench/http/deno_flash_hono_router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/bench/http/deno_flash_hono_router.js') 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); -- cgit v1.2.3