Skip to content

Commit ea76a75

Browse files
committed
fix: report inbound strem bytes
1 parent 9068fd5 commit ea76a75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/portalnet/src/utp/controller.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ impl UtpController {
196196
// report utp tx as successful, even if we go on to fail to process the payload
197197
self.metrics
198198
.report_utp_outcome(UtpDirectionLabel::Inbound, UtpOutcomeLabel::Success);
199+
self.metrics.report_bytes_inbound(data.len() as u64);
199200
Ok(Bytes::from(data))
200201
}
201202

0 commit comments

Comments
 (0)