Runs on remote

This commit is contained in:
Dominik Werder
2021-05-07 13:36:50 +02:00
parent 073fde5fa8
commit b8507c4a35
6 changed files with 55 additions and 8 deletions
+11
View File
@@ -40,6 +40,17 @@ pub enum CacheUsage {
Recreate,
}
impl CacheUsage {
pub fn query_param_value(&self) -> String {
match self {
CacheUsage::Use => "use",
CacheUsage::Ignore => "ignore",
CacheUsage::Recreate => "recreate",
}
.into()
}
}
#[derive(Clone, Debug)]
pub struct BinnedQuery {
range: NanoRange,
+1 -1
View File
@@ -252,7 +252,7 @@ impl Stream for PreBinnedValueStream {
match self.query.cache_usage {
super::CacheUsage::Use | super::CacheUsage::Recreate => {
let msg = format!(
"Write cache file\n{:?}\nN: {}\n\n\n",
"Write cache file query: {:?} bin count: {}",
self.query.patch,
self.values.ts1s.len()
);
+2 -2
View File
@@ -59,7 +59,7 @@ impl EventChunker {
data_emit_complete: false,
final_stats_sent: false,
data_since_last_stats: 0,
stats_emit_interval: 64,
stats_emit_interval: 256,
parsed_bytes: 0,
}
}
@@ -84,7 +84,7 @@ impl EventChunker {
data_emit_complete: false,
final_stats_sent: false,
data_since_last_stats: 0,
stats_emit_interval: 64,
stats_emit_interval: 256,
parsed_bytes: 0,
}
}