From 7e96c11204bdc87b837d6f2e6a43fa2dd370ca55 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 14 Sep 2022 17:39:17 +0000 Subject: [PATCH] Island: Add docstring to MongoEventRepository --- monkey/monkey_island/cc/repository/mongo_event_repository.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/monkey_island/cc/repository/mongo_event_repository.py b/monkey/monkey_island/cc/repository/mongo_event_repository.py index 2bf793c68..f95bfbdd4 100644 --- a/monkey/monkey_island/cc/repository/mongo_event_repository.py +++ b/monkey/monkey_island/cc/repository/mongo_event_repository.py @@ -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