From f1781f2ff7a792117b0ca4679f73ff41f289d600 Mon Sep 17 00:00:00 2001 From: Artem Solomatin Date: Tue, 24 Oct 2023 01:47:03 +0300 Subject: [PATCH] Fix few README text issues --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 66ff7a72..cba10f40 100644 --- a/README.md +++ b/README.md @@ -715,7 +715,7 @@ You need roughly three additional configuration steps: * Authenticate with an x.509 Certificate To get the x.509 authentication working you need to prepare the ssl configuration accordingly: -* you need set the ssl option: `verify_peer` +* you need to set the ssl option: `verify_peer` * you need to specify the `cacertfile` because Erlang BEAM don't provide any CA certificate store by default * you maybe need to customize the hostname check to allow wildcard certificates * you need to specify the `username` from the subject entry of the user certificate @@ -903,7 +903,7 @@ result = Mongo.BulkWrite.write(:mongo, bulk, w: 1) In the following example we import 1.000.000 integers into the MongoDB using the stream api: We need to create an insert operation for each number. Then we call the `Mongo.UnorderedBulk.stream` -function to import it. This function returns a stream function which accumulate +function to import it. This function returns a stream function that accumulates all inserts operations until the limit `1000` is reached. In this case the operation group is send to MongoDB. So using the stream api you can reduce the memory using while importing big volume of data. @@ -1022,7 +1022,7 @@ That means, you can just generate a `raise :should_not_happen` exception as well ## Command Monitoring -You can watch all events that are triggered while the driver send requests and processes responses. You can use the +You can watch all events that are triggered while the driver sends requests and processes responses. You can use the `Mongo.EventHandler` as a starting point. It logs the events from the topic `:commands` (by ignoring the `:isMaster` command) to `Logger.info`: @@ -1037,7 +1037,7 @@ iex> {:ok, conn} = Mongo.start_link(url: "mongodb://localhost:27017/test") ## Testing -Latest MongoDB is used while running the tests. Replica set of three nodes is created and runs all test except the socket and ssl test. If you want to +Latest MongoDB is used while running the tests. Replica set of three nodes is created and runs all tests, except the socket and ssl test. If you want to run the test cases against other MongoDB deployments or older versions, you can use the [mtools](https://github.com/rueckstiess/mtools) for deployment and run the test cases locally: ```bash