Skip to content

Commit 060aea0

Browse files
committed
fix style and spell
1 parent 3a0b916 commit 060aea0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intelmq/bots/outputs/smtp_batch/output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def hash_arbitrary(value: Any) -> bytes:
4343
value_bytes = json.dumps(value, sort_keys=True).encode("utf-8")
4444
return sha256(value_bytes).digest()
4545

46+
4647
@dataclass
4748
class Mail:
4849
key: str
@@ -96,7 +97,7 @@ def process(self):
9697
field = message["source.abuse_contact"]
9798
for mail in (field if isinstance(field, list) else [field]):
9899
# - Each event goes into one bucket (equivalent to group-by)
99-
# - The id of each bucket is calcuated by hashing all the keys that should be grouped for
100+
# - The id of each bucket is calculated by hashing all the keys that should be grouped for
100101
# - Hashing ensures the redis-key does not grow indefinitely.
101102
# - In order to avoid collisions, each value is hashed before
102103
# appending to the input for the redis-key-hash

0 commit comments

Comments
 (0)