summary refs log tree commit diff
path: root/synapse/events/utils.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2025-03-26 22:00:52 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2025-03-26 22:00:52 +0000
commit2830013e5ed88822e487a90c0ba6cf7ab86bd358 (patch)
treed0dc3eb341be7ee51e41bdcf6911546bc1796839 /synapse/events/utils.py
parentAdd docs for how to clear out the Poetry wheel cache (#18283) (diff)
parent1.127.1 (diff)
downloadsynapse-2830013e5ed88822e487a90c0ba6cf7ab86bd358.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'synapse/events/utils.py')
-rw-r--r--synapse/events/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py

index 54f94add4d..eb18ba2db7 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py
@@ -40,6 +40,8 @@ import attr from canonicaljson import encode_canonical_json from synapse.api.constants import ( + CANONICALJSON_MAX_INT, + CANONICALJSON_MIN_INT, MAX_PDU_SIZE, EventContentFields, EventTypes, @@ -61,9 +63,6 @@ SPLIT_FIELD_REGEX = re.compile(r"\\*\.") # Find escaped characters, e.g. those with a \ in front of them. ESCAPE_SEQUENCE_PATTERN = re.compile(r"\\(.)") -CANONICALJSON_MAX_INT = (2**53) - 1 -CANONICALJSON_MIN_INT = -CANONICALJSON_MAX_INT - # Module API callback that allows adding fields to the unsigned section of # events that are sent to clients.