Skip to content

Commit

Permalink
Merge pull request #83 from fastify/Fdawgs-patch-2
Browse files Browse the repository at this point in the history
docs(readme): replace use of deprecated variadic `listen()`
  • Loading branch information
Uzlopak authored Aug 5, 2022
2 parents 703682b + 7ff33b8 commit a2b69d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
})
Expand Down

0 comments on commit a2b69d5

Please sign in to comment.