mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
style: drop redundant utf-8 encode arguments
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -272,7 +272,7 @@ async def controller_http_notifications(request: Request) -> StreamingResponse:
|
||||
with Controller.instance().notification.controller_queue() as queue:
|
||||
while not app.state.exiting:
|
||||
msg = await queue.get_json(5)
|
||||
yield f"{msg}\n".encode("utf-8")
|
||||
yield f"{msg}\n".encode()
|
||||
finally:
|
||||
log.info(f"Client {client} has disconnected from controller HTTP notification stream")
|
||||
|
||||
|
||||
@@ -543,7 +543,7 @@ async def project_http_notifications(project_id: UUID) -> StreamingResponse:
|
||||
with controller.notification.project_queue(project.id) as queue:
|
||||
while not app.state.exiting:
|
||||
msg = await queue.get_json(5)
|
||||
yield f"{msg}\n".encode("utf-8")
|
||||
yield f"{msg}\n".encode()
|
||||
finally:
|
||||
log.info(f"Client has disconnected from notification for project ID '{project.id}' (HTTP stream method)")
|
||||
if project.auto_close:
|
||||
|
||||
Reference in new issue
Block a user