From 6cc8a9a741fefb96fba24a4f4c5dacb5527e0b5f Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 5 Aug 2022 12:16:58 +0100 Subject: [PATCH] chore: replace use of deprecated variadic `listen()` (#87) --- README.md | 2 +- example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43eab90..427f995 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ fastify.get('/__stats__', async function () { return this.stats() }) -fastify.listen(3000) +fastify.listen({ port: 3000 }) ``` ```sh diff --git a/example.js b/example.js index 2cf5e83..67cdc36 100644 --- a/example.js +++ b/example.js @@ -23,4 +23,4 @@ fastify.get('/__stats__', function (request, reply) { reply.send(this.stats()) }) -fastify.listen(3000) +fastify.listen({ port: 3000 })