mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +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: {
|
intentOptions: {
|
||||||
// If encryption support is enabled, we cannot expire Intent objects or we risk
|
// If encryption support is enabled, we cannot expire Intent objects or we risk
|
||||||
// a resource contention on the Sled DB.
|
// a resource contention on the Sled DB.
|
||||||
maxCached: config.encryption && 0,
|
maxCached: config.encryption ? 0 : undefined,
|
||||||
maxAgeMs: config.encryption && 0,
|
maxAgeMs: config.encryption ? 0 : undefined,
|
||||||
encryption: !!config.encryption,
|
encryption: !!config.encryption,
|
||||||
},
|
},
|
||||||
cryptoStorage: cryptoStorage,
|
cryptoStorage: cryptoStorage,
|
||||||
@ -50,4 +50,4 @@ export function getAppservice(config: BridgeConfig, registration: IAppserviceReg
|
|||||||
Metrics.registerMatrixSdkMetrics(appservice);
|
Metrics.registerMatrixSdkMetrics(appservice);
|
||||||
|
|
||||||
return {appservice, storage};
|
return {appservice, storage};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user