Skip to content

Commit a7f21a4

Browse files
committed
fix clippy and changelog
1 parent 3d4204a commit a7f21a4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

metrics-exporter-dogstatsd/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased] - ReleaseDate
1010

11+
### Fixed
12+
13+
- Don't consume length prefix from next payload when draining finalized payloads.
14+
([#593](https://github.com/metrics-rs/metrics/pull/593))
15+
1116
## [0.9.5] - 2025-06-20
1217

1318
### Changed

metrics-exporter-dogstatsd/src/writer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ impl PayloadWriter {
521521

522522
/// Iterator over all payloads written by a `PayloadWriter`.
523523
///
524-
/// The source payload buffer is immediately drained of consumed data during the creation of this iterator
525-
/// ("pre-pooping our pants"). This ensures that the end state - the payload buffer contains only preserved
526-
/// bytes (like length prefixes) - is established immediately.
524+
/// The source payload buffer is immediately drained of consumed data during the creation of this iterator (as known as
525+
/// ["pre-pooping our pants"][everyone_poops]). This ensures that the end state - the payload buffer contains only
526+
/// preserved bytes (like length prefixes) - is established immediately.
527527
///
528-
/// https://faultlore.com/blah/everyone-poops/
528+
/// [everyone_poops]: https://faultlore.com/blah/everyone-poops/
529529
pub struct Payloads<'a> {
530530
payloads_buf: Vec<u8>,
531531
start: usize,

0 commit comments

Comments
 (0)