Skip to content

Commit

Permalink
docs(readme): replace use of deprecated variadic listen() (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Aug 5, 2022
1 parent 2b1d741 commit 27688bb
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 @@ -48,7 +48,7 @@ fastify.get('/hello', {}, (request, reply) => {
reply.send({ hello: 'world' })
})

fastify.listen(3000, (err, address) => {
fastify.listen({ port: 3000 }, (err, address) => {
if (err) {
console.error(err)
return
Expand Down

0 comments on commit 27688bb

Please sign in to comment.