Skip to content

Commit

Permalink
Fix stats
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Dec 12, 2024
1 parent cc201aa commit c5ba11e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zenoh/src/net/routing/dispatcher/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ pub fn route_data(
drop(tables);
#[cfg(feature = "stats")]
if !admin {
inc_stats!(face, tx, user, msg.payload)
inc_stats!(outface, tx, user, msg.payload)
} else {
inc_stats!(face, tx, admin, msg.payload)
inc_stats!(outface, tx, admin, msg.payload)
}

outface.primitives.send_push(
Expand Down Expand Up @@ -465,9 +465,9 @@ pub fn route_data(
for (outface, key_expr, context) in route {
#[cfg(feature = "stats")]
if !admin {
inc_stats!(face, tx, user, msg.payload)
inc_stats!(outface, tx, user, msg.payload)
} else {
inc_stats!(face, tx, admin, msg.payload)
inc_stats!(outface, tx, admin, msg.payload)
}

outface.primitives.send_push(
Expand Down

0 comments on commit c5ba11e

Please sign in to comment.