Remove enqueuer abstraction from sender

Unnecessary complexity since Python lacks exclusive ownership.
This commit is contained in:
Lonami Exo
2023-09-01 11:57:41 +02:00
parent 77b49a1c88
commit 2e1321b6c9
2 changed files with 41 additions and 64 deletions

View File

@@ -22,11 +22,11 @@ def test_invoke_encrypted_method(caplog: LogCaptureFixture) -> None:
def timeout() -> float:
return deadline - asyncio.get_running_loop().time()
sender, enqueuer = await asyncio.wait_for(
sender = await asyncio.wait_for(
connect(Full(), TELEGRAM_DEFAULT_TEST_DC), timeout()
)
rx = enqueuer.enqueue(
rx = sender.enqueue(
functions.invoke_with_layer(
layer=LAYER,
query=functions.init_connection(