From 2a043e890387dabacac50b0008ca416fc4b40f03 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 3 Nov 2024 12:36:14 +0000 Subject: [PATCH] style: remove trailing whitespace (#243) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eff347e..ea24de0 100644 --- a/README.md +++ b/README.md @@ -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')() @@ -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' }) @@ -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).