Skip to content

Commit b05149f

Browse files
committed
Add consumed_cu and max_cu fields to LogContext struct
Included `consumed_cu` and `max_cu` fields in `LogContext` and `LogContextError` initialization. These fields are central for tracking computing resource usage during log processing.
1 parent f1fc108 commit b05149f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sologger/src/log_processor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ pub async fn log_contexts_from_logs_test() {
3030
invoke_result: "".to_string(),
3131
slot: 0,
3232
signature: "".to_string(),
33+
consumed_cu: 0,
34+
max_cu: 0,
3335
};
3436

3537
let log_context_error = LogContext {
@@ -46,6 +48,8 @@ pub async fn log_contexts_from_logs_test() {
4648
invoke_result: "".to_string(),
4749
slot: 0,
4850
signature: "".to_string(),
51+
consumed_cu: 0,
52+
max_cu: 0,
4953
};
5054

5155
let log_contexts = vec![log_context, log_context_error];

0 commit comments

Comments
 (0)