File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl ParseableServer for QueryServer {
53
53
54
54
// on subsequent runs, the qurier should check if the ingestor is up and running or not
55
55
for ingester in data. iter ( ) {
56
- dbg ! ( & ingester) ;
56
+ // dbg!(&ingester);
57
57
// yes the format macro does not need the '/' ingester.origin already
58
58
// has '/' because Url::Parse will add it if it is not present
59
59
// uri should be something like `http://address/api/v1/liveness`
@@ -165,7 +165,7 @@ impl QueryServer {
165
165
166
166
let mut f = Self :: get_meta_file ( ) . await ;
167
167
// writer the arr in f
168
- let write_size = f. write ( serde_json:: to_string ( & arr) ?. as_bytes ( ) ) . await ?;
168
+ let _ = f. write ( serde_json:: to_string ( & arr) ?. as_bytes ( ) ) . await ?;
169
169
Ok ( arr)
170
170
}
171
171
@@ -224,11 +224,12 @@ impl QueryServer {
224
224
Ok ( ( ) )
225
225
}
226
226
227
+ #[ allow( dead_code) ]
227
228
async fn sync_ingestor_metadata ( ) {
228
229
let mut interval = tokio:: time:: interval ( tokio:: time:: Duration :: from_secs ( 60 / 10 ) ) ;
229
230
loop {
230
231
interval. tick ( ) . await ;
231
- dbg ! ( "Tick" ) ;
232
+ // dbg!("Tick");
232
233
Self :: get_ingestor_info ( ) . await . unwrap ( ) ;
233
234
}
234
235
}
Original file line number Diff line number Diff line change @@ -60,15 +60,11 @@ async fn main() -> anyhow::Result<()> {
60
60
61
61
// these are empty ptrs so mem footprint should be minimal
62
62
let server: Arc < dyn ParseableServer > = match CONFIG . parseable . mode {
63
- Mode :: Query => {
64
- Arc :: new ( QueryServer )
65
- }
66
- Mode :: Ingest => {
67
- Arc :: new ( IngestServer )
68
- }
69
- Mode :: All => {
70
- Arc :: new ( Server )
71
- }
63
+ Mode :: Query => Arc :: new ( QueryServer ) ,
64
+
65
+ Mode :: Ingest => Arc :: new ( IngestServer ) ,
66
+
67
+ Mode :: All => Arc :: new ( Server ) ,
72
68
} ;
73
69
74
70
// add logic for graceful shutdown if
You can’t perform that action at this time.
0 commit comments