Skip to content

Commit 3b58530

Browse files
committed
doc: update instance registration comment
1 parent 0a62c14 commit 3b58530

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ async def _register_instance(
491491
owner_id: integer id of the object owning the instance. Owners will be tracked in
492492
_instance_owners, and instances will only be unregistered when all
493493
owners call _remove_instance_registration. Can be obtained by calling
494-
id(owner)
494+
`id` identity funcion, using `id(owner)`
495495
"""
496496
instance_name = self._gapic_client.instance_path(self.project, instance_id)
497497
instance_key = _WarmedInstanceKey(instance_name, app_profile_id)
@@ -529,7 +529,7 @@ def _remove_instance_registration(
529529
instance_id: id of the instance to remove
530530
app_profile_id: id of the app profile calling the instance.
531531
owner_id: integer id of the object owning the instance. Can be
532-
obtained by calling id(owner)
532+
obtained by the `id` identity funcion, using `id(owner)`.
533533
Returns:
534534
bool: True if instance was removed, else False
535535
"""

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def _register_instance(
367367
owner_id: integer id of the object owning the instance. Owners will be tracked in
368368
_instance_owners, and instances will only be unregistered when all
369369
owners call _remove_instance_registration. Can be obtained by calling
370-
id(owner)"""
370+
`id` identity funcion, using `id(owner)`"""
371371
instance_name = self._gapic_client.instance_path(self.project, instance_id)
372372
instance_key = _WarmedInstanceKey(instance_name, app_profile_id)
373373
self._instance_owners.setdefault(instance_key, set()).add(owner_id)
@@ -390,7 +390,7 @@ def _remove_instance_registration(
390390
instance_id: id of the instance to remove
391391
app_profile_id: id of the app profile calling the instance.
392392
owner_id: integer id of the object owning the instance. Can be
393-
obtained by calling id(owner)
393+
obtained by the `id` identity funcion, using `id(owner)`.
394394
Returns:
395395
bool: True if instance was removed, else False"""
396396
instance_name = self._gapic_client.instance_path(self.project, instance_id)

0 commit comments

Comments
 (0)