File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ serde_yaml = "0.8.11"
31
31
serde_json = { version = " ~1" , features = [" arbitrary_precision" ] }
32
32
simple_logger = " 1.9.0"
33
33
syn = { version = " ~0.11" , features = [" full" ] }
34
- sysinfo = " 0.9.6"
35
34
url = " 2.1.1"
36
35
yaml-rust = " 0.4.3"
37
36
tar = " ~0.4"
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ use elasticsearch::{
52
52
use once_cell:: sync:: Lazy ;
53
53
use serde_json:: { json, Value } ;
54
54
use std:: ops:: Deref ;
55
- use sysinfo:: SystemExt ;
56
55
use url:: Url ;
57
56
58
57
fn cluster_addr ( ) -> String {
@@ -62,12 +61,6 @@ fn cluster_addr() -> String {
62
61
}
63
62
}
64
63
65
- /// Determines if Fiddler.exe proxy process is running
66
- fn running_proxy ( ) -> bool {
67
- let system = sysinfo:: System :: new ( ) ;
68
- !system. get_process_by_name ( "Fiddler" ) . is_empty ( )
69
- }
70
-
71
64
static GLOBAL_CLIENT : Lazy < Elasticsearch > = Lazy :: new ( || {
72
65
let mut url = Url :: parse ( cluster_addr ( ) . as_ref ( ) ) . unwrap ( ) ;
73
66
@@ -103,11 +96,6 @@ static GLOBAL_CLIENT: Lazy<Elasticsearch> = Lazy::new(|| {
103
96
None => builder,
104
97
} ;
105
98
106
- if running_proxy ( ) {
107
- let proxy_url = Url :: parse ( "http://localhost:8888" ) . unwrap ( ) ;
108
- builder = builder. proxy ( proxy_url, None , None ) ;
109
- }
110
-
111
99
let transport = builder. build ( ) . unwrap ( ) ;
112
100
Elasticsearch :: new ( transport)
113
101
} ) ;
You can’t perform that action at this time.
0 commit comments