style: drop redundant utf-8 encode arguments

This commit is contained in:
Mark Paronyan committed 2026-10-01 19:57:44 +03:00
1 parent 06ef803ee9
commit 7d0be62da8
2 files changed
+2 -2

No files matched your search

+1 -1
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: