Skip to content

Commit 2bf2502

Browse files
committed
CP review
1 parent 284dfa2 commit 2bf2502

6 files changed

Lines changed: 2 additions & 6 deletions

File tree

pymongo/asynchronous/collection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ def __init__(
251251
unicode_decode_error_handler="replace", document_class=dict
252252
)
253253
self._timeout = database.client.options.timeout
254-
self._retry_policy = database.client._retry_policy
255254

256255
if create or kwargs:
257256
if _IS_SYNC:

pymongo/asynchronous/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def __init__(
135135
self._name = name
136136
self._client: AsyncMongoClient[_DocumentType] = client
137137
self._timeout = client.options.timeout
138-
self._retry_policy = client._retry_policy
139138

140139
@property
141140
def client(self) -> AsyncMongoClient[_DocumentType]:

pymongo/synchronous/collection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ def __init__(
254254
unicode_decode_error_handler="replace", document_class=dict
255255
)
256256
self._timeout = database.client.options.timeout
257-
self._retry_policy = database.client._retry_policy
258257

259258
if create or kwargs:
260259
if _IS_SYNC:

pymongo/synchronous/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def __init__(
135135
self._name = name
136136
self._client: MongoClient[_DocumentType] = client
137137
self._timeout = client.options.timeout
138-
self._retry_policy = client._retry_policy
139138

140139
@property
141140
def client(self) -> MongoClient[_DocumentType]:

test/asynchronous/test_client_backpressure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
_IS_SYNC = False
3939

40-
# Mock an system overload error.
40+
# Mock a system overload error.
4141
mock_overload_error = {
4242
"configureFailPoint": "failCommand",
4343
"mode": {"times": 1},

test/test_client_backpressure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
_IS_SYNC = True
3939

40-
# Mock an system overload error.
40+
# Mock a system overload error.
4141
mock_overload_error = {
4242
"configureFailPoint": "failCommand",
4343
"mode": {"times": 1},

0 commit comments

Comments
 (0)