mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 04:21:53 +08:00
Perf: reduce infra runtime costs
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const path = require('path');
|
||||
const { createRuleset } = require('./lib/create-file');
|
||||
const { parseFelixDnsmasq } = require('./lib/parse-dnsmasq');
|
||||
const { runner } = require('./lib/trace-runner');
|
||||
const { runner, task } = require('./lib/trace-runner');
|
||||
|
||||
const buildAppleCdn = async () => {
|
||||
const buildAppleCdn = task(__filename, async () => {
|
||||
const res = await parseFelixDnsmasq('https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf');
|
||||
|
||||
const description = [
|
||||
@@ -40,7 +40,7 @@ const buildAppleCdn = async () => {
|
||||
path.resolve(__dirname, '../Clash/domainset/apple_cdn.txt')
|
||||
)
|
||||
]);
|
||||
};
|
||||
});
|
||||
|
||||
module.exports.buildAppleCdn = buildAppleCdn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user