From b81a7c0417a11f1a6398cd7e8079abf6ba65e70b Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sun, 9 Jul 2023 00:09:22 +0800 Subject: [PATCH] style: Run Prettier v3 (#1155) --- src/app.js | 9 ++++++--- src/bridge.js | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) 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()