mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
re-use get_async_rpc()
This commit is contained in:
@@ -91,7 +91,7 @@ class Rpc:
|
|||||||
|
|
||||||
async def __aenter__(self):
|
async def __aenter__(self):
|
||||||
self.__enter__()
|
self.__enter__()
|
||||||
return AsyncRpc(self)
|
return self.get_async_rpc()
|
||||||
|
|
||||||
async def __aexit__(self, _exc_type, _exc, _tb):
|
async def __aexit__(self, _exc_type, _exc, _tb):
|
||||||
self.__exit__(_exc_type, _exc, _tb)
|
self.__exit__(_exc_type, _exc, _tb)
|
||||||
|
|||||||
Reference in New Issue
Block a user