Island: Add docstring to MongoEventRepository

This commit is contained in:
Kekoa Kaaikala 2022-09-14 17:39:17 +00:00
parent 5c762930bf
commit 7e96c11204
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ from .consts import MONGO_OBJECT_ID_KEY
class MongoEventRepository(IEventRepository):
"""A repository for storing and retrieving events in MongoDB"""
def __init__(self, mongo_client: MongoClient, serializer_registry: EventSerializerRegistry):
self._events_collection = mongo_client.monkey_island.events
self._serializers = serializer_registry