File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env bun
22
3- import { isUrlValid , validatePort } from "./utils/validator" ;
3+ import { isUrlValid , validatePort } from "./src/ utils/validator" ;
44import { createSpinner } from "nanospinner" ;
5- import { proxyServer } from "./services/proxyService" ;
5+ import { proxyServer } from "./src/ services/proxyService" ;
66import { cli } from "./cli" ;
7- import { redis } from "./configs/redis" ;
8- import { Cache } from "./services/cacheService" ;
7+ import { redis } from "./src/ configs/redis" ;
8+ import { Cache } from "./src/ services/cacheService" ;
99
1010const program = cli ( ) ;
1111
@@ -46,12 +46,10 @@ const app = async () => {
4646 const cacheStore = new Cache ( redisClient ) ;
4747
4848 // clear cache if --clear is specified
49- if ( CLEAR_CACHE ) {
50- const isCleared = await cacheStore . flushKeys ( )
51- if ( isCleared )
52- console . log ( "Cached data cleared successfully!" ) ;
53- else
54- console . log ( "Failed to clear the cached data :(" )
49+ if ( CLEAR_CACHE ) {
50+ const isCleared = await cacheStore . flushKeys ( ) ;
51+ if ( isCleared ) console . log ( "Cached data cleared successfully!" ) ;
52+ else console . log ( "Failed to clear the cached data :(" ) ;
5553 }
5654
5755 // start the proxy server
You can’t perform that action at this time.
0 commit comments