File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
metrics-exporter-dogstatsd Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
## [ Unreleased] - ReleaseDate
10
10
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
+
11
16
## [ 0.9.5] - 2025-06-20
12
17
13
18
### Changed
Original file line number Diff line number Diff line change @@ -521,11 +521,11 @@ impl PayloadWriter {
521
521
522
522
/// Iterator over all payloads written by a `PayloadWriter`.
523
523
///
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.
527
527
///
528
- /// https://faultlore.com/blah/everyone-poops/
528
+ /// [everyone_poops]: https://faultlore.com/blah/everyone-poops/
529
529
pub struct Payloads < ' a > {
530
530
payloads_buf : Vec < u8 > ,
531
531
start : usize ,
You can’t perform that action at this time.
0 commit comments