|
13 | 13 | # See the License for the specific language governing permissions and
|
14 | 14 | # limitations under the License.
|
15 | 15 | import logging
|
16 |
| -import os |
17 | 16 | import sys
|
18 | 17 | from typing import Dict, List
|
19 | 18 |
|
@@ -283,30 +282,6 @@ def start(config_options: List[str]) -> None:
|
283 | 282 | "synapse.app.user_dir",
|
284 | 283 | )
|
285 | 284 |
|
286 |
| - if config.experimental.faster_joins_enabled: |
287 |
| - # Never enable this flag on a server that is not ephemeral, and especially |
288 |
| - # not on a production server! Not even temporarily! |
289 |
| - # THIS FLAG IS PROVIDED SOLELY FOR COMPLEMENT TEST COVERAGE TO PREVENT TEST |
290 |
| - # REGRESSIONS WHILST FASTER JOINS ARE IN DEVELOPMENT. |
291 |
| - # NO SUPPORT WILL BE PROVIDED ONCE THIS OPTION HAS BEEN ENABLED ON A SERVER. |
292 |
| - if os.environb.get( |
293 |
| - b"SYNAPSE_DANGEROUS_EXPERIMENTAL_I_DO_NOT_CARE_ABOUT_THIS_SERVER_ENABLE_FRRJ_UNDER_WORKERS_ANYWAY" |
294 |
| - ): |
295 |
| - logger.critical( |
296 |
| - "You have enabled the experimental `faster_joins` config option. " |
297 |
| - "It is not currently compatible with worker deployments. " |
298 |
| - "You have chosen to enable it anyway. " |
299 |
| - "Expect severe bugs, including irreversible database corruption " |
300 |
| - "and permanent data loss. " |
301 |
| - "No support will be offered for this installation of Synapse." |
302 |
| - ) |
303 |
| - else: |
304 |
| - raise ConfigError( |
305 |
| - "You have enabled the experimental `faster_joins` config option, but " |
306 |
| - "it is not compatible with worker deployments yet. Please disable " |
307 |
| - "`faster_joins` or run Synapse as a single process deployment instead." |
308 |
| - ) |
309 |
| - |
310 | 285 | synapse.events.USE_FROZEN_DICTS = config.server.use_frozen_dicts
|
311 | 286 | synapse.util.caches.TRACK_MEMORY_USAGE = config.caches.track_memory_usage
|
312 | 287 |
|
|
0 commit comments