From eda96e70fb9fa5f2ac2c9078432039ad02f6fc55 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 6 Jul 2022 11:07:43 +0900 Subject: [PATCH] chore(benchmark): support for new version --- benchmarks/deno/hono-reg-exp-router.ts | 2 +- benchmarks/deno/hono.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/deno/hono-reg-exp-router.ts b/benchmarks/deno/hono-reg-exp-router.ts index b2837b31..09705d2e 100644 --- a/benchmarks/deno/hono-reg-exp-router.ts +++ b/benchmarks/deno/hono-reg-exp-router.ts @@ -16,4 +16,4 @@ app.get('/user/lookup/username/:username', (c) => { return c.json({ message: `Hello ${c.req.param('username')}` }) }) -serve(app.fire()) +serve((req) => app.fetch(req)) diff --git a/benchmarks/deno/hono.ts b/benchmarks/deno/hono.ts index cf64f1b7..424a53f8 100644 --- a/benchmarks/deno/hono.ts +++ b/benchmarks/deno/hono.ts @@ -16,4 +16,4 @@ app.get('/user/lookup/username/:username', (c) => { return c.json({ message: `Hello ${c.req.param('username')}` }) }) -serve(app.fire()) +serve((req) => app.fetch(req))