Skip to content

Commit

Permalink
Fixing Publisher Example
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Nov 9, 2023
1 parent 234b3f3 commit 1cfbaac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions publisher/publisher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
class Publisher:

def __init__(self):
self.publishClient = publishClient
self.publishClient = publishClient()

@command()
def publish_topics(self, payload:dict, topic:str = "topic1") -> dict:
self.publishClient.publish(_topic=topic, payload = payload)
return dict

def main():
Expand All @@ -25,4 +26,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit 1cfbaac

Please sign in to comment.