Skip to content

Commit

Permalink
docs(readme): replace use of deprecated variadic listen() (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 5, 2022
1 parent 1848dfe commit 070847e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -41,7 +41,7 @@ fastify.register(async function (fastify) {
})
})

fastify.listen(3000, err => {
fastify.listen({ port: 3000 }, err => {
if (err) {
fastify.log.error(err)
process.exit(1)
Expand Down Expand Up @@ -78,7 +78,7 @@ fastify.register(async function (fastify) {
})
})

fastify.listen(3000, err => {
fastify.listen({ port: 3000 }, err => {
if (err) {
fastify.log.error(err)
process.exit(1)
Expand Down Expand Up @@ -182,7 +182,7 @@ fastify.register(async function () {
})
})

fastify.listen(3000, err => {
fastify.listen({ port: 3000 }, err => {
if (err) {
fastify.log.error(err)
process.exit(1)
Expand Down Expand Up @@ -223,7 +223,7 @@ fastify.get('/', { websocket: true }, (connection /* SocketStream */, req /* Fas
})
})

fastify.listen(3000, err => {
fastify.listen({ port: 3000 }, err => {
if (err) {
fastify.log.error(err)
process.exit(1)
Expand Down

0 comments on commit 070847e

Please sign in to comment.