Fix policer infinite iteration #498

Merged
fyrchik merged 2 commits from fyrchik/frostfs-node:fix-policer into master 2023-07-07 14:52:35 +00:00

2 commits

Author SHA1 Message Date
80ac7a10d7 [#498] policer: Allow to set sleep duration between iterations
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Build / Build Components (1.19) (pull_request) Successful in 3m55s
Build / Build Components (1.20) (pull_request) Successful in 3m41s
Tests and linters / Tests (1.19) (pull_request) Successful in 3m16s
Tests and linters / Lint (pull_request) Successful in 7m20s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m44s
Tests and linters / Tests with -race (pull_request) Successful in 20m41s
Speed up tests on CI.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-07-06 18:32:18 +03:00
5d836b9560 [#498] policer: Explicitly Rewind() iterator after finish
Previously, we can continue to return `EndOfListing` infinitely.
Reflect iterator reuse via Rewind() method.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-07-06 18:32:18 +03:00