mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-03 09:10:11 +03:00
style: drop redundant utf-8 encode arguments
This commit is contained in:
parent
06ef803ee9
commit
7d0be62da8
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user