Skip to content

Commit

Permalink
remove useless print logic
Browse files Browse the repository at this point in the history
  • Loading branch information
flearc authored and Forsworns committed Apr 4, 2024
1 parent bf76a5d commit b1107f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions sentinel-core/src/core/log/metric/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ pub fn write_task(mut map: MetricTimeMap) {
}
// Sort the time
keys.sort_unstable();
println!("keys: {:?}", keys);

let writer = METRIC_WRITER.as_ref().unwrap();
let mut writer = writer.lock().unwrap();
Expand Down Expand Up @@ -73,13 +72,10 @@ pub fn do_aggregate() {
current_metric_items(stat::inbound_node(), cur_time),
stat::inbound_node(),
);
println!("map: {:?}", map);

// Update current last fetch timestamp.
LAST_FETCH_TIME.store(cur_time, Ordering::SeqCst);

println!("Store last fetch time {}", cur_time);

if !map.is_empty() {
std::thread::spawn(move || write_task(map));
}
Expand Down
2 changes: 0 additions & 2 deletions sentinel-core/src/datasource/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ pub type PropertyConverter<P> = fn(src: &str) -> Result<Vec<Arc<P>>>;
pub fn rule_json_array_parser<P: SentinelRule + DeserializeOwned>(
src: &str,
) -> Result<Vec<Arc<P>>> {
println!("{:?}", src);
println!("{:?}", serde_json::from_str::<Vec<P>>(src));
let rules: Vec<P> = serde_json::from_str(src)?;
Ok(rules.into_iter().map(|r| Arc::new(r)).collect())
}
Expand Down

0 comments on commit b1107f9

Please sign in to comment.