-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make synapse.events.USE_FROZEN_DICTS
default to False
, except where it is overridden by the config?
3a1789d
to
5441a99
Compare
# NOTE: This is overridden by the configuration by the Synapse worker apps, but | ||
# for the sake of tests, it is set here while it cannot be configured on the | ||
# homeserver object itself. | ||
USE_FROZEN_DICTS = strtobool(os.environ.get("SYNAPSE_USE_FROZEN_DICTS", "0")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an intention to set this for the tests somewhere?
@@ -136,6 +136,8 @@ def default_config(name): | |||
config.rc_messages_per_second = 10000 | |||
config.rc_message_burst_count = 10000 | |||
|
|||
config.use_frozen_dicts = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if this is actually used (since afaict use_frozen_dicts
is only read by code which is never run under the UTs), and if not I would probably choose to omit this. But I'm not that bothered and this needs merging.
No description provided.