Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Make the spam checker a module #2474

Merged
merged 5 commits into from
Sep 27, 2017
Merged

Make the spam checker a module #2474

merged 5 commits into from
Sep 27, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 26, 2017

No description provided.

@@ -144,7 +143,7 @@ def callback(_, pdu, redacted):
)
return redacted

if spamcheck.check_event_for_spam(pdu):
Copy link
Member

Choose a reason for hiding this comment

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

So we're requiring this to be run synchronously? I.e., no IO while checking?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, same as before basically (it doesn't yield on the function call)

Copy link
Member

Choose a reason for hiding this comment

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

I was more wondering whether we really want to preclude the spam checkers from e.g. accessing the DB, but ok.

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

LGTM, once the unit tests pasts

Sometimes it's a Mock object which is not none but is still not
what we're after
@dbkr dbkr merged commit 74e494b into develop Sep 27, 2017
@dbkr dbkr deleted the dbkr/spam_check_module branch October 17, 2017 12:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants