feat(proxy/config): resourceDebouce → resourceCacheDelay

Similar to xo-server.
This commit is contained in:
Julien Fontanet 2021-02-23 17:49:51 +01:00
parent 5c9a47b6b7
commit 1b97cb263c
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
authenticationToken = ''
datadir = '/var/lib/xo-proxy/data'
resourceDebounce = '5m'
resourceCacheDelay = '5m'
[api]
keepAliveInterval = 10e3

View File

@ -42,7 +42,7 @@ export default class App {
})
const debounceResource = createDebounceResource()
this.config.watchDuration('resourceDebounce', delay => {
this.config.watchDuration('resourceCacheDelay', delay => {
debounceResource.defaultDelay = delay
})
this.hooks.once('stop', debounceResource.flushAll)