Skip to content

Commit

Permalink
Remove socket timeout from default mongo options
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed May 17, 2023
1 parent d61ade3 commit ecebebc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion limits/aio/storage/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class MongoDBStorage(Storage, MovingWindowSupport):

DEFAULT_OPTIONS: Dict[str, Union[float, str, bool]] = {
"serverSelectionTimeoutMS": 1000,
"socketTimeoutMS": 1000,
"connectTimeoutMS": 1000,
}
"Default options passed to :class:`~motor.motor_asyncio.AsyncIOMotorClient`"
Expand Down
1 change: 0 additions & 1 deletion limits/storage/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class MongoDBStorage(Storage, MovingWindowSupport):
STORAGE_SCHEME = ["mongodb", "mongodb+srv"]
DEFAULT_OPTIONS: Dict[str, Union[int, str, bool]] = {
"serverSelectionTimeoutMS": 1000,
"socketTimeoutMS": 1000,
"connectTimeoutMS": 1000,
}
"Default options passed to :class:`~pymongo.mongo_client.MongoClient`"
Expand Down

0 comments on commit ecebebc

Please sign in to comment.