Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 3306ad7

Browse files
committed
fixed missing convert
1 parent 557b54a commit 3306ad7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

google/cloud/bigtable/data/_async/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ def _invalidate_channel_stubs(self):
418418
self.transport._stubs = {}
419419
self.transport._prep_wrapped_messages(self.client_info)
420420

421+
@CrossSync.convert
421422
async def _manage_channel(
422423
self,
423424
refresh_interval_min: float = 60 * 35,

google/cloud/bigtable/data/_sync_autogen/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def _invalidate_channel_stubs(self):
316316
self.transport._stubs = {}
317317
self.transport._prep_wrapped_messages(self.client_info)
318318

319-
async def _manage_channel(
319+
def _manage_channel(
320320
self,
321321
refresh_interval_min: float = 60 * 35,
322322
refresh_interval_max: float = 60 * 45,
@@ -347,16 +347,16 @@ async def _manage_channel(
347347
)
348348
next_sleep = max(first_refresh - time.monotonic(), 0)
349349
if next_sleep > 0:
350-
await self._ping_and_warm_instances(channel=super_channel)
350+
self._ping_and_warm_instances(channel=super_channel)
351351
while not self._is_closed.is_set():
352-
await CrossSync._Sync_Impl.event_wait(
352+
CrossSync._Sync_Impl.event_wait(
353353
self._is_closed, next_sleep, async_break_early=False
354354
)
355355
if self._is_closed.is_set():
356356
break
357357
start_timestamp = time.monotonic()
358358
new_channel = super_channel.create_channel()
359-
await self._ping_and_warm_instances(channel=new_channel)
359+
self._ping_and_warm_instances(channel=new_channel)
360360
old_channel = super_channel.swap_channel(new_channel)
361361
self._invalidate_channel_stubs()
362362
if grace_period:

0 commit comments

Comments
 (0)