From ee9f62c868b869105907e0edf607220c367b9085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 29 Mar 2020 16:53:50 +0200 Subject: [PATCH] adjust interface --- communicator.py | 12 ++++++++++-- messagesender.py | 2 -- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/communicator.py b/communicator.py index 4c8b585..dd8c348 100644 --- a/communicator.py +++ b/communicator.py @@ -3,7 +3,7 @@ import requests """ -Main Flask RESTful API +Communicator module """ __author__ = "@tormakris" @@ -41,4 +41,12 @@ class Communicator: Readiness probe primary consumer. :return: """ - pass \ No newline at end of file + pass + + def checkconsumer(self, consumer: str) -> bool: + """ + Readiness probe of a prticular consumer. + :param consumer: + :return: + """ + pass diff --git a/messagesender.py b/messagesender.py index cd81501..0a86e5c 100644 --- a/messagesender.py +++ b/messagesender.py @@ -17,7 +17,6 @@ class MessageSender: """ Üzenetek küldéséért felelős komponens. """ - id def __init__(self): """ @@ -43,7 +42,6 @@ class MessageSender: self.id += random.randrange(10000) data = self.randomString(p) - #print(str(self.id) + " " + str(data)) return str(self.id) + " " + str(data) pass