frostfs-node/pkg/services/policer
Evgenii Stratonikov 0bcbeb26b2 [#1605] policer: Simplify processRepNodes() checks
Current flow is hard to reason about, #1601 is a notorious example of
accidental complexity.
1. Remove multiple nested ifs, use depth=1.
2. Process each status exactly once, hopefully preventing bugs like
   #1601.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-21 05:34:54 +00:00
..
check.go [#1605] policer: Simplify processRepNodes() checks 2025-01-21 05:34:54 +00:00
check_test.go [#1604] policer: Remove one-line helpers 2025-01-16 16:37:16 +03:00
ec.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
ec_test.go [#1231] policer: Add EC node-off unit test 2024-07-05 12:11:36 +03:00
metrics.go [#735] policer: Allow to provide metrics from the outside 2023-10-11 15:14:13 +03:00
nodecache.go [#1605] policer: Simplify processRepNodes() checks 2025-01-21 05:34:54 +00:00
option.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
policer.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
policer_test.go [#1604] policer: Properly handle maintenance nodes 2025-01-16 16:37:52 +03:00
process.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00