Skip to content

Commit

Permalink
style: remove trailing whitespace (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent 8853757 commit 2a043e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm i @fastify/mongodb
```

## Usage
Add it to your project with `register` and you are done!
Add it to your project with `register` and you are done!

```js
const fastify = require('fastify')()
Expand All @@ -28,7 +28,7 @@ fastify.register(require('@fastify/mongodb'), {
// force to close the mongodb connection when app stopped
// the default value is false
forceClose: true,

url: 'mongodb://mongo/mydb'
})

Expand Down Expand Up @@ -73,7 +73,7 @@ mongodb.MongoClient.connect('mongodb://mongo/db')
})
```

Notes:
Notes:
* the passed `client` connection will **not** be closed when the Fastify server
shuts down.
* in order to terminate the MongoDB connection you have to manually call the [fastify.close](https://fastify.dev/docs/latest/Reference/Server/#close) method (for example for testing purposes, otherwise the test will hang).
Expand Down

0 comments on commit 2a043e8

Please sign in to comment.