Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 8ef81ce

Browse files
imgovindJohn Andersen
authored andcommitted
df: memory: Remove memory from NotificationSet
Fixes: #229
1 parent d67bd2c commit 8ef81ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dffml/df/memory.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ async def add(self, notification_item: Any, set_items: List[Any]):
131131
Add set_items to set and notification_item to the notification queue
132132
"""
133133
async with self.parent.lock:
134-
map(self.parent.memory.add, set_items)
135134
self.parent.notification_items.append(notification_item)
136135
self.parent.event_added.set()
137136

@@ -170,7 +169,6 @@ class NotificationSet(object):
170169

171170
def __init__(self) -> None:
172171
# TODO audit use of memory (should be used sparingly)
173-
self.memory = set()
174172
self.lock = asyncio.Lock()
175173
self.event_added = asyncio.Event()
176174
self.event_added_lock = asyncio.Lock()

0 commit comments

Comments
 (0)