Commit 09a8c5e
authored
Fix dogstatsd property test (#1413)
* Fix dogstatsd property test
This commit fixes our prefix length calculation, triggered only when max_bytes
is low. We were removing the size of a `usize` when `u32` was appropriate, as
that is the proper length of the payload prefix.
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
* clippy
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
* lifetime ding
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
---------
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>1 parent 742f93c commit 09a8c5e
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
493 | | - | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
569 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
570 | 576 | | |
571 | | - | |
| 577 | + | |
| 578 | + | |
572 | 579 | | |
573 | 580 | | |
574 | 581 | | |
| |||
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | | - | |
| 591 | + | |
585 | 592 | | |
586 | 593 | | |
587 | 594 | | |
| |||
0 commit comments