Skip to content

Commit

Permalink
Make Room state backing store be default enabled. (#673)
Browse files Browse the repository at this point in the history
* Make Room state backing store be default enabled.

* Disable Room State Backing Store for Integration Tests
  • Loading branch information
FSG-Cat authored Jan 15, 2025
1 parent c3552d0 commit 69b666e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protections:
# homeserver and know that Draupnir is starting up quickly. If your homeserver can
# respond quickly to Draupnir's requests for `/state` then you might not need this option.
roomStateBackingStore:
enabled: false
enabled: true

# Safe mode provides recovery options for some failure modes when Draupnir
# fails to start. For example, if the bot fails to resolve a room alias in
Expand Down
8 changes: 8 additions & 0 deletions config/harness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ protections:
# Set to zero to disable (users will always be banned if they say a bad word)
minutesBeforeTrusting: 20

# The room state backing store writes a copy of the room state for all protected
# rooms to the data directory.
# It is recommended to enable this option unless you deploy Draupnir close to the
# homeserver and know that Draupnir is starting up quickly. If your homeserver can
# respond quickly to Draupnir's requests for `/state` then you might not need this option.
roomStateBackingStore:
enabled: false

# Options for monitoring the health of the bot
health:
# healthz options. These options are best for use in container environments
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const defaultConfig: IConfig = {
},
},
roomStateBackingStore: {
enabled: false,
enabled: true,
},
experimentalRustCrypto: false,
configMeta: undefined,
Expand Down

0 comments on commit 69b666e

Please sign in to comment.