Skip to content

Commit 595cbc1

Browse files
ShafSpecsjulianoes
authored andcommitted
Removed aiogrpc + utilized grpcio native aio sub-module
1 parent a175cd3 commit 595cbc1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mavsdk/async_plugin_manager.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import logging
3-
import aiogrpc
3+
from grpc import aio
44

55

66
class AsyncPluginManager:
@@ -26,16 +26,15 @@ async def _connect_backend(self):
2626
"""
2727

2828
#: gRPC channel
29-
self._channel = aiogrpc.insecure_channel(
30-
"{}:{}".format(self.host, self.port),
31-
standalone_pool_for_streaming=True
29+
self._channel = aio.insecure_channel(
30+
"{}:{}".format(self.host, self.port)
3231
)
3332

3433
logger = logging.getLogger(__name__)
3534
logger.addHandler(logging.NullHandler()) # Avoid errors when user has not configured logging
3635

3736
logger.debug("Waiting for mavsdk_server to be ready...")
38-
await aiogrpc.channel_ready_future(self._channel)
37+
await self._channel.channel_ready()
3938
logger.debug("Connected to mavsdk_server!")
4039

4140
@property

0 commit comments

Comments
 (0)