Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove self._publisher
Browse files Browse the repository at this point in the history
seeker25 committed May 14, 2024
1 parent de25dc7 commit c24dc63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth-api/src/auth_api/services/gcp_queue/gcp_queue.py
Original file line number Diff line number Diff line change
@@ -90,12 +90,12 @@ def init_app(self, app: Flask):
@property
def publisher(self):
"""Returns the publisher."""
if not self._publisher and self.credentials_pub:
if self.credentials_pub:
print('Choosing credentials')
self._publisher = pubsub_v1.PublisherClient(credentials=self.credentials_pub)
else:
print('no cred!')
print(self._printer)
print(self._publisher)
print(self.credentials_pub)
print(self.gcp_auth_key[0:20])
self._publisher = pubsub_v1.PublisherClient()

0 comments on commit c24dc63

Please sign in to comment.