mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Perf: drop stream transform for certain cases
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { fetchRemoteTextByLine } from './lib/fetch-text-by-line';
|
||||
import { fetchRemoteTextLines } from './lib/fetch-text-by-line';
|
||||
import { SpanCategory, task } from './trace';
|
||||
|
||||
import { IPListOutput } from './lib/rules/ip';
|
||||
import { createFileDescription } from './constants/description';
|
||||
|
||||
const getChnCidrPromise = Promise.all([
|
||||
fetchRemoteTextByLine('https://chnroutes2.cdn.skk.moe/chnroutes.txt', true).then(Array.fromAsync<string>),
|
||||
fetchRemoteTextByLine('https://gaoyifan.github.io/china-operator-ip/china6.txt', true).then(Array.fromAsync<string>)
|
||||
fetchRemoteTextLines('https://chnroutes2.cdn.skk.moe/chnroutes.txt', true),
|
||||
fetchRemoteTextLines('https://gaoyifan.github.io/china-operator-ip/china6.txt', true)
|
||||
]);
|
||||
|
||||
export const buildChnCidr = task(require.main === module, __filename)(async (span) => {
|
||||
|
||||
Reference in New Issue
Block a user