Skip to content

Commit

Permalink
updated tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Oct 28, 2023
1 parent 03884c6 commit 4fc52f2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 299 deletions.

This file was deleted.

223 changes: 0 additions & 223 deletions crates/tree_availability/src/server/middleware/logging_layer.rs

This file was deleted.

5 changes: 1 addition & 4 deletions crates/tree_availability/src/server/middleware/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
pub mod api_metrics_layer;
pub mod logging_layer;
pub mod remove_auth_layer;
pub mod timeout_layer;

This file was deleted.

17 changes: 0 additions & 17 deletions crates/tree_availability/src/server/middleware/timeout_layer.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/tree_availability/src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
mod middleware;

use std::sync::atomic::Ordering;
use std::sync::Arc;

Expand Down
5 changes: 4 additions & 1 deletion crates/tree_availability/src/world_tree/tree_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ impl TreeData {

let mut tree = self.tree.write().await;
for (i, identity) in identities.iter().enumerate() {
*tree = tree.update(start_index + i, identity);
let idx = start_index + i;
*tree = tree.update(idx, identity);
tracing::info!("Inserted {identity} at idx {idx}");
}
}

Expand All @@ -49,6 +51,7 @@ impl TreeData {

for idx in delete_indices.iter() {
*tree = tree.update(*idx, &Hash::ZERO);
tracing::info!("Deleting identity at idx {idx}");
}
}

Expand Down

0 comments on commit 4fc52f2

Please sign in to comment.