Skip to content

Commit 941d652

Browse files
committed
fix: report inbound strem bytes
1 parent 397bf0f commit 941d652

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

portalnet/src/utp_controller.rs

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ impl UtpController {
156156
// report utp tx as successful, even if we go on to fail to process the payload
157157
self.metrics
158158
.report_utp_outcome(UtpDirectionLabel::Inbound, UtpOutcomeLabel::Success);
159+
self.metrics.report_bytes_inbound(data.len() as u64);
159160
Ok(Bytes::from(data))
160161
}
161162

0 commit comments

Comments
 (0)