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

fix EventBroker async warning #7717

Merged
merged 4 commits into from
Jan 13, 2021
Merged

fix EventBroker async warning #7717

merged 4 commits into from
Jan 13, 2021

Conversation

wochinge
Copy link
Contributor

@wochinge wochinge commented Jan 13, 2021

Proposed changes:

  • fix wrong The method 'EventBroker.close was changed to be asynchronous warning (the condition wasn't negated 🤦🏻 )
  • add missing single quotes

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@wochinge wochinge requested a review from alwx January 13, 2021 09:43
@@ -87,9 +87,9 @@ async def publish_events(self) -> int:
logger.exception(e)
raise PublishingError(current_timestamp)

if asyncio.iscoroutinefunction(self.event_broker.close):
if not asyncio.iscoroutinefunction(self.event_broker.close):
Copy link
Contributor

Choose a reason for hiding this comment

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

😅

Copy link
Contributor

@alwx alwx left a comment

Choose a reason for hiding this comment

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

💯

@rasabot rasabot merged commit c384190 into 2.2.x Jan 13, 2021
@rasabot rasabot deleted the event-broker-async-warning branch January 13, 2021 14:24
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.

3 participants