Extract the notification part of controller to a dedicated class

This commit is contained in:
Julien Duponchelle committed 2016-05-18 14:56:23 +02:00
1 parent d86cefaaeb
commit 694e1a2e68
10 files changed
+162 -106

No files matched your search

@@ -152,7 +152,7 @@ class ProjectHandler:
response.content_length = None
response.start(request)
with project.queue() as queue:
with controller.notification.queue(project) as queue:
while True:
try:
msg = yield from queue.get_json(5)
@@ -178,7 +178,7 @@ class ProjectHandler:
ws = aiohttp.web.WebSocketResponse()
yield from ws.prepare(request)
with project.queue() as queue:
with controller.notification.queue(project) as queue:
while True:
try:
notification = yield from queue.get_json(5)