Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Oct 21, 2020
1 parent 0d269d3 commit e0540d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions google/cloud/pubsub_v1/publisher/client.py
Expand Up @@ -133,14 +133,13 @@ def __init__(self, batch_settings=(), publisher_options=(), **kwargs):
# The auto-generated layer's client has mTLS logic to determine the api
# endpoint and the ssl credentials to use. Here we create a client
# and extract the api endpoint and ssl credentials. The api endpoint
# will be used to set `self._target`, and ssl credentials will be
# will be used to set `self._target`, and ssl credentials will be
# passed to `grpc_helpers.create_channel` to establish a mTLS channel
# (if ssl credentials is not None).
client_options = kwargs.get("client_options", None)
credentials=kwargs.get("credentials", None)
credentials = kwargs.get("credentials", None)
publisher_client_instance = publisher_client.PublisherClient(
credentials=credentials,
client_options=client_options
credentials=credentials, client_options=client_options
)

self._target = publisher_client_instance._transport._host
Expand Down
8 changes: 3 additions & 5 deletions google/cloud/pubsub_v1/subscriber/client.py
Expand Up @@ -16,7 +16,6 @@

import os
import pkg_resources
import six

import grpc

Expand Down Expand Up @@ -85,14 +84,13 @@ def __init__(self, **kwargs):
# The auto-generated layer's client has mTLS logic to determine the api
# endpoint and the ssl credentials to use. Here we create a client
# and extract the api endpoint and ssl credentials. The api endpoint
# will be used to set `self._target`, and ssl credentials will be
# will be used to set `self._target`, and ssl credentials will be
# passed to `grpc_helpers.create_channel` to establish a mTLS channel
# (if ssl credentials is not None).
client_options = kwargs.get("client_options", None)
credentials=kwargs.get("credentials", None)
credentials = kwargs.get("credentials", None)
subscriber_client_instance = subscriber_client.SubscriberClient(
credentials=credentials,
client_options=client_options
credentials=credentials, client_options=client_options
)

self._target = subscriber_client_instance._transport._host
Expand Down

0 comments on commit e0540d1

Please sign in to comment.