Skip to content

Commit

Permalink
fix core of async. With removing await at create_task
Browse files Browse the repository at this point in the history
backend begins working really asynchronous
mrtedn21 committed Nov 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ee4116a commit 33e920e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion martin_eden/core.py
Original file line number Diff line number Diff line change
@@ -194,6 +194,6 @@ async def main(self) -> None:
await self.event_loop.sock_accept(self.server_socket)
)
print(f'get request for connection from {client_address}')
await asyncio.create_task(
asyncio.create_task(
self.handle_request(client_socket),
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "martin-eden"
version = "0.9.11"
version = "0.10"
description = "async backend framework on sockets"
authors = ["mrtedn21 <[email protected]>"]
readme = "README.md"

0 comments on commit 33e920e

Please sign in to comment.