mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Revert "Smaller timeout for MongoStorage connection"
This reverts commit d88b7ec612.
This commit is contained in:
parent
af118d0f9d
commit
03c0d58290
1 changed files with 1 additions and 4 deletions
|
|
@ -39,10 +39,7 @@ class MongoStorage(BaseStorage):
|
|||
|
||||
@classmethod
|
||||
def from_url(
|
||||
cls,
|
||||
url: str,
|
||||
connection_kwargs: Optional[Dict[str, Any]] = {"serverSelectionTimeoutMS": 2000},
|
||||
**kwargs: Any,
|
||||
cls, url: str, connection_kwargs: Optional[Dict[str, Any]] = None, **kwargs: Any
|
||||
) -> "MongoStorage":
|
||||
"""
|
||||
Create an instance of :class:`MongoStorage` with specifying the connection string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue