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

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