Skip to content

Commit ff33135

Browse files
committed
Minor docs changes
1 parent 5c5ce7f commit ff33135

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/tutorials/ruby-driver-sessions.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Sessions
1515

1616
Version 3.6 of the MongoDB server introduces the concept of logical sessions for clients.
1717
A session is an abstract concept that represents a set of sequential operations executed
18-
by an application that are related in some way. A session object can be create via a ``Mongo::Client``
18+
by an application that are related in some way. A session object can be created via a ``Mongo::Client``
1919
and passed to operation methods that should be executed in the context of that session.
2020

21-
Please note that sessions are not thread safe. They can only be used by one thread at a time.
21+
Please note that session objects are not thread safe. They must only be used by one thread at a time.
2222

2323
Creating a session from a ``Mongo::Client``
2424
-------------------------------------------
@@ -38,8 +38,8 @@ session options.
3838
An error will be thrown if the driver is connected to a deployment that does not support sessions and the
3939
``start_session`` method is called.
4040

41-
Note that server sessions are discarded server-side if not used for a certain period of time. That said,
42-
be aware that if the application calls ``#start_session`` on a client and waits more than 1 minute to use
41+
Note that server sessions are discarded server-side if not used for a certain period of time.
42+
Be aware that if the application calls ``#start_session`` on a client and waits more than 1 minute to use
4343
the session, it risks getting errors due to the session going stale before it is used.
4444

4545

0 commit comments

Comments
 (0)