Skip to content

Commit

Permalink
chore: replace use of deprecated variadic listen() (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 5, 2022
1 parent 21dca6e commit f6ffc7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/server-compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ fastify
// An absolute path containing static files to serve.
root: path.join(__dirname, '/public')
})
.listen(3000, err => {
.listen({ port: 3000 }, err => {
if (err) throw err
})
2 changes: 1 addition & 1 deletion example/server-dir-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ fastify
render: (dirs, files) => handlebarTemplate({ dirs, files })
}
})
.listen(3000, err => {
.listen({ port: 3000 }, err => {
if (err) throw err
})
2 changes: 1 addition & 1 deletion example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ fastify
// An absolute path containing static files to serve.
root: path.join(__dirname, '/public')
})
.listen(3000, err => {
.listen({ port: 3000 }, err => {
if (err) throw err
})

0 comments on commit f6ffc7b

Please sign in to comment.