Skip to content

Commit 2e3e873

Browse files
committed
validator_worker - producer - log merge of events
1 parent a6673c8 commit 2e3e873

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

validator_worker/src/producer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use primitives::BalancesMap;
88

99
use crate::core::events::merge_aggrs;
1010
use crate::sentry_interface::SentryApi;
11+
use slog::info;
1112

1213
pub type Result = std::result::Result<(BalancesMap, Option<Accounting>), Box<dyn Error>>;
1314

@@ -28,7 +29,12 @@ pub async fn tick<A: Adapter + 'static>(iface: &SentryApi<A>) -> Result {
2829
.await?;
2930

3031
if !aggrs.events.is_empty() {
31-
// TODO: Log the merge
32+
info!(
33+
iface.logger,
34+
"channel {}: processing {} event aggregates",
35+
iface.channel.id,
36+
aggrs.events.len()
37+
);
3238
let (balances, new_accounting) = merge_aggrs(&accounting, &aggrs.events, &iface.channel)?;
3339

3440
let message_types = MessageTypes::Accounting(new_accounting.clone());

0 commit comments

Comments
 (0)