Skip to content

Commit

Permalink
chore: replace use of deprecated variadic listen() (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Aug 5, 2022
1 parent 27166e7 commit 6cc8a9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fastify.get('/__stats__', async function () {
return this.stats()
})

fastify.listen(3000)
fastify.listen({ port: 3000 })
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fastify.get('/__stats__', function (request, reply) {
reply.send(this.stats())
})

fastify.listen(3000)
fastify.listen({ port: 3000 })

0 comments on commit 6cc8a9a

Please sign in to comment.