Skip to content

Commit 76c4ee6

Browse files
committed
Revert "Merge branch 'backpressure' of github.com:mongodb/mongo-python-driver into PYTHON-5517"
This reverts commit 1895e00, reversing changes made to d3a4958.
1 parent 1895e00 commit 76c4ee6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymongo/asynchronous/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
7777
return cast(F, inner)
7878

7979

80-
_MAX_RETRIES = 5
81-
_BACKOFF_INITIAL = 0.1
80+
_MAX_RETRIES = 3
81+
_BACKOFF_INITIAL = 0.05
8282
_BACKOFF_MAX = 10
8383
# DRIVERS-3240 will determine these defaults.
8484
DEFAULT_RETRY_TOKEN_CAPACITY = 1000.0

pymongo/synchronous/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def inner(*args: Any, **kwargs: Any) -> Any:
7777
return cast(F, inner)
7878

7979

80-
_MAX_RETRIES = 5
81-
_BACKOFF_INITIAL = 0.1
80+
_MAX_RETRIES = 3
81+
_BACKOFF_INITIAL = 0.05
8282
_BACKOFF_MAX = 10
8383
# DRIVERS-3240 will determine these defaults.
8484
DEFAULT_RETRY_TOKEN_CAPACITY = 1000.0

0 commit comments

Comments
 (0)