From ea224f052b435316c464b4af197ddd83b61d0ae9 Mon Sep 17 00:00:00 2001 From: Micooz Date: Tue, 3 Jul 2018 15:06:09 +0800 Subject: [PATCH] src: move speed-tester.js to utils/ --- src/core/hub.js | 3 +-- src/utils/index.js | 1 + src/{core => utils}/speed-tester.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{core => utils}/speed-tester.js (100%) diff --git a/src/core/hub.js b/src/core/hub.js index 9c3bbf1..c635481 100644 --- a/src/core/hub.js +++ b/src/core/hub.js @@ -12,8 +12,7 @@ import uniqueId from 'lodash.uniqueid'; import { Config } from './config'; import { Relay } from './relay'; import { MuxRelay } from './mux-relay'; -import { SpeedTester } from './speed-tester'; -import { dumpHex, logger } from '../utils'; +import { SpeedTester, dumpHex, logger } from '../utils'; import { http as httpProxy, socks, tcp } from '../proxies'; export const MAX_CONNECTIONS = 50; diff --git a/src/utils/index.js b/src/utils/index.js index 81cd0c5..edb9a3f 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -5,4 +5,5 @@ export * from './dns-cache'; export * from './string'; export * from './validator'; export * from './advanced-buffer'; +export * from './speed-tester'; export * from './logger'; diff --git a/src/core/speed-tester.js b/src/utils/speed-tester.js similarity index 100% rename from src/core/speed-tester.js rename to src/utils/speed-tester.js