Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Make slackClient optional in MessageQueueProcessor #15

Merged
merged 9 commits into from
Oct 11, 2021
Merged

Conversation

Femi-Ogunkola
Copy link
Contributor

Description

Screenshots:

Checklist:

  • I have updated the CHANGELOG with a summary of my changes

@krishan711 krishan711 changed the title Queue Feature: Make slackClient optional in MessageQueueProcessor Oct 11, 2021
@@ -18,7 +19,7 @@ async def process_message(self, message: Message) -> None:

class MessageQueueProcessor:

def __init__(self, queue: SqsMessageQueue, messageProcessor: MessageProcessor, slackClient: SlackClient):
def __init__(self, queue: SqsMessageQueue, messageProcessor: MessageProcessor, slackClient: Optional[SlackClient]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def __init__(self, queue: SqsMessageQueue, messageProcessor: MessageProcessor, slackClient: Optional[SlackClient]):
def __init__(self, queue: SqsMessageQueue, messageProcessor: MessageProcessor, slackClient: Optional[SlackClient] = None):

@krishan711 krishan711 merged commit 9e2ecb7 into main Oct 11, 2021
@krishan711 krishan711 deleted the queue branch October 11, 2021 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants