Skip to content

Commit 99a90d4

Browse files
authored
chore: replace use of deprecated variadic listen() (#647)
1 parent 991113e commit 99a90d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/collection-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fastify.route({
4646
}
4747
})
4848

49-
fastify.listen(0, (err, addr) => {
49+
fastify.listen({ port: 3000 }, (err, addr) => {
5050
if (err) throw err
5151
console.log(`listening on ${addr}`)
5252
})

0 commit comments

Comments
 (0)