mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Update appservice.ts
This commit is contained in:
parent
73f0d55741
commit
03d6ed21ea
@ -40,8 +40,8 @@ export function getAppservice(config: BridgeConfig, registration: IAppserviceReg
|
||||
intentOptions: {
|
||||
// If encryption support is enabled, we cannot expire Intent objects or we risk
|
||||
// a resource contention on the Sled DB.
|
||||
maxCached: config.encryption && 0,
|
||||
maxAgeMs: config.encryption && 0,
|
||||
maxCached: config.encryption ? 0 : undefined,
|
||||
maxAgeMs: config.encryption ? 0 : undefined,
|
||||
encryption: !!config.encryption,
|
||||
},
|
||||
cryptoStorage: cryptoStorage,
|
||||
@ -50,4 +50,4 @@ export function getAppservice(config: BridgeConfig, registration: IAppserviceReg
|
||||
Metrics.registerMatrixSdkMetrics(appservice);
|
||||
|
||||
return {appservice, storage};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user