Skip to content

Commit

Permalink
fix: add async client to
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed May 4, 2021
1 parent b08fa71 commit cde85dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ from . import {{ subpackage }}
{% for service in api.services.values()|sort(attribute='name')
if service.meta.address.subpackage == api.subpackage_view %}
from .services.{{ service.name|snake_case }} import {{ service.client_name }}
{% if 'grpc' in opts.transport %}
from .services.{{ service.name|snake_case }} import {{ service.async_client_name }}
{% endif %}
{% endfor %}

{# Import messages and enums from each proto.
Expand Down

0 comments on commit cde85dd

Please sign in to comment.