Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the correct variable for frozen dict usage #500

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/SyTest/Homeserver/Synapse.pm
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,21 @@ sub start

# map sytest db args onto synapse db args
my %synapse_db_config;
my %synapse_frozen_dicts;
if( $db_type eq "pg" ) {
%synapse_db_config = (
name => 'psycopg2',
args => $db_config{args},
);
%synapse_frozen_dicts="false";
}
else {
# must be sqlite
%synapse_db_config = (
name => 'sqlite3',
args => $db_config{args},
);
%synapse_frozen_dicts="true";
}

# Clean up the media_store directory each time, or else it fills up with
Expand Down Expand Up @@ -162,7 +165,7 @@ sub start
macaroon_secret_key => $macaroon_secret_key,
registration_shared_secret => $registration_shared_secret,

use_frozen_events => "true",
use_frozen_dicts => \%synapse_frozen_dicts,

allow_guest_access => "True",
invite_3pid_guest => "true",
Expand Down