mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Remove enqueuer abstraction from sender
Unnecessary complexity since Python lacks exclusive ownership.
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user