Skip to content

Commit

Permalink
Change subscribe input
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Nov 9, 2023
1 parent e589ec1 commit 9f079c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions subscribe/subscribe/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
class SubscribeClient:

@subscribe(topics=["topic1","topic2"])
def subscribe_multiple_topics(self, payload:dict) -> dict:
return dict
def subscribe_multiple_topics(self, value:str) -> str:
return value

@subscribe(topics="topic1")
def subscrib_one_topics(self, payload:dict) -> dict:
return dict
def subscrib_one_topics(self, value:str) -> str:
return value

@subscribe(topics="topic.*")
def subscribe_wildcard_topics(self, payload:dict) -> dict:
return dict
def subscribe_wildcard_topics(self, value:str) -> str:
return value

def main():
plugin = Plugin(
Expand All @@ -30,4 +30,4 @@ def main():


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

0 comments on commit 9f079c0

Please sign in to comment.