Commit 1d3174b
chore(histogram): Simplify code by using std lib method (tikv#547)
* chore(histogram): Simplify code by using std lib method
Leverage existing standard library method to simplify implementation. No changes to public API or MSRV.
Signed-off-by: Matheus <[email protected]>
* refactor(histogram): Remove `duration_to_seconds` function
Signed-off-by: Matheus <[email protected]>
* tests(histogram): Remove `duration_to_second` test
After removing the aforementioned method in a previous commit, this test became obsolete.
Signed-off-by: Matheus <[email protected]>
---------
Signed-off-by: Matheus <[email protected]>
Co-authored-by: Luca Bruno <[email protected]>1 parent 53d3066 commit 1d3174b
1 file changed
+1
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | 884 | | |
892 | 885 | | |
893 | 886 | | |
| |||
1363 | 1356 | | |
1364 | 1357 | | |
1365 | 1358 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | 1359 | | |
1377 | 1360 | | |
1378 | 1361 | | |
| |||
0 commit comments