File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
intelmq/bots/outputs/smtp_batch Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def hash_arbitrary(value: Any) -> bytes:
43
43
value_bytes = json .dumps (value , sort_keys = True ).encode ("utf-8" )
44
44
return sha256 (value_bytes ).digest ()
45
45
46
+
46
47
@dataclass
47
48
class Mail :
48
49
key : str
@@ -96,7 +97,7 @@ def process(self):
96
97
field = message ["source.abuse_contact" ]
97
98
for mail in (field if isinstance (field , list ) else [field ]):
98
99
# - 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
100
101
# - Hashing ensures the redis-key does not grow indefinitely.
101
102
# - In order to avoid collisions, each value is hashed before
102
103
# appending to the input for the redis-key-hash
You can’t perform that action at this time.
0 commit comments