File tree 2 files changed +1
-26
lines changed
2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,6 @@ pub struct State {
179
179
///
180
180
/// When set, its value is the map key into `interface` and `interface_ips`.
181
181
pub default_route_interface : Option < String > ,
182
-
183
- /// The HTTP proxy to use, if any.
184
- pub http_proxy : Option < String > ,
185
-
186
- /// The URL to the Proxy Autoconfig URL, if applicable.
187
- pub pac : Option < String > ,
188
182
}
189
183
190
184
impl fmt:: Display for State {
@@ -245,8 +239,6 @@ impl State {
245
239
have_v6,
246
240
is_expensive : false ,
247
241
default_route_interface,
248
- http_proxy : None ,
249
- pac : None ,
250
242
}
251
243
}
252
244
@@ -262,8 +254,6 @@ impl State {
262
254
have_v4 : true ,
263
255
is_expensive : false ,
264
256
default_route_interface : Some ( ifname) ,
265
- http_proxy : None ,
266
- pac : None ,
267
257
}
268
258
}
269
259
@@ -282,8 +272,6 @@ impl State {
282
272
|| self . have_v4 != old. have_v4
283
273
|| self . is_expensive != old. is_expensive
284
274
|| self . default_route_interface != old. default_route_interface
285
- || self . http_proxy != old. http_proxy
286
- || self . pac != old. pac
287
275
{
288
276
return true ;
289
277
}
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ impl Monitor {
94
94
95
95
#[ cfg( test) ]
96
96
mod tests {
97
- use n0_future:: StreamExt ;
98
97
use n0_watcher:: Watcher as _;
99
98
100
99
use super :: * ;
@@ -104,19 +103,7 @@ mod tests {
104
103
let mon = Monitor :: new ( ) . await . unwrap ( ) ;
105
104
let sub = mon. subscribe ( ) ;
106
105
107
- let mut current = sub. get ( ) . unwrap ( ) ;
106
+ let current = sub. get ( ) . unwrap ( ) ;
108
107
println ! ( "current state: {}" , current) ;
109
- let mut stream = sub. stream ( ) ;
110
-
111
- for _ in 0 ..10 {
112
- let state = stream. next ( ) . await . unwrap ( ) ;
113
- println ! (
114
- "CHANGE DETECTED: major?: {}\n {}\n " ,
115
- state. is_major_change( & current) ,
116
- state
117
- ) ;
118
-
119
- current = state;
120
- }
121
108
}
122
109
}
You can’t perform that action at this time.
0 commit comments