style: drop redundant utf-8 encode arguments

This commit is contained in:
Mark Paronyan 2026-09-30 20:45:44 +03:00
parent 06ef803ee9
commit 7d0be62da8
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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: