diff --git a/src/app.js b/src/app.js index 85e2329b3e..bb146d5d05 100644 --- a/src/app.js +++ b/src/app.js @@ -152,9 +152,12 @@ const dnsSource = // Start the "Clean Cache" background task. const csgInstance = CacheStorageGroup.getInstance(); -setInterval(() => { - csgInstance.cleanup(); -}, 15 * 60 * 1000); +setInterval( + () => { + csgInstance.cleanup(); + }, + 15 * 60 * 1000 +); Promise.all( dnsSource.map((query) => query(target.join(','))).concat(target.map(dns)) diff --git a/src/bridge.js b/src/bridge.js index b1e48ab4cd..9443fec9f0 100644 --- a/src/bridge.js +++ b/src/bridge.js @@ -28,9 +28,12 @@ const distribute = (url, router) => // Start the "Clean Cache" background task. const csgInstance = CacheStorageGroup.getInstance(); -setInterval(() => { - csgInstance.cleanup(); -}, 15 * 60 * 1000); +setInterval( + () => { + csgInstance.cleanup(); + }, + 15 * 60 * 1000 +); require('http') .createServer()