From 7ff33b8d79eb7fb49537e739f6bcd6a6f76761cf Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 5 Aug 2022 09:41:03 +0000 Subject: [PATCH] docs(readme): replace use of deprecated variadic `listen()` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9273dc..4614145 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ fastify.kafka.on('updates', (msg, commit) => { commit() }) -fastify.listen(3000, err => { +fastify.listen({ port: 3000 }, err => { if (err) throw err console.log(`server listening on ${fastify.server.address().port}`) })