Commit dfd950d
committed
refactor(metrics): [#1580] reorganize metric collection aggregates into submodules
- Move metric_collection/aggregate.rs to aggregate/sum.rs submodule
- Create proper module structure for aggregate operations
- Update import paths in http-tracker-core, udp-tracker-core, and udp-tracker-server
- Change imports from `aggregate::Sum` to `aggregate::sum::Sum`
- Maintain the same Sum trait functionality with cleaner module organization
This reorganization prepares for potential future aggregate operations beyond
just sum while keeping the existing Sum trait API intact.1 parent 00ac210 commit dfd950d
File tree
5 files changed
+5
-4
lines changed- packages
- http-tracker-core/src/statistics
- metrics/src/metric_collection/aggregate
- udp-tracker-core/src/statistics
- udp-tracker-server/src/statistics
5 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments