X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Fstore.py;h=c8e5910d08b5192b906f4aef78312c16269e891d;hb=5f069332606e512f74791c6497af40326b611344;hp=e9586d706c1d3f5908605431bdfca1b49aa4c905;hpb=1138656db9f4f3bce15ec609d5448474d1e0cea1;p=osm%2FN2VC.git diff --git a/n2vc/store.py b/n2vc/store.py index e9586d7..c8e5910 100644 --- a/n2vc/store.py +++ b/n2vc/store.py @@ -13,7 +13,6 @@ # limitations under the License. import abc -import asyncio import typing from motor.motor_asyncio import AsyncIOMotorClient @@ -183,22 +182,19 @@ class DbMongoStore(Store): class MotorStore(Store): - def __init__(self, uri: str, loop=None): + def __init__(self, uri: str): """ Constructor :param: uri: Connection string to connect to the database. - :param: loop: Asyncio Loop """ self._client = AsyncIOMotorClient(uri) - self.loop = loop or asyncio.get_event_loop() self._secret_key = None self._config = EnvironConfig(prefixes=["OSMLCM_", "OSMMON_"]) self.encryption = Encryption( uri=uri, config=self._config, encoding_type="utf-8", - loop=self.loop, logger_name="db", )