morph: Get rid of container.List invocations #965

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-morph into master 2024-02-07 08:56:29 +00:00

1 commit

Author SHA1 Message Date
357287c267 [#965] morph: Get rid of container.List invocations
All checks were successful
DCO action / DCO (pull_request) Successful in 4m40s
Vulncheck / Vulncheck (pull_request) Successful in 6m44s
Build / Build Components (1.20) (pull_request) Successful in 10m13s
Build / Build Components (1.21) (pull_request) Successful in 10m7s
Tests and linters / Staticcheck (pull_request) Successful in 11m7s
Tests and linters / Tests (1.20) (pull_request) Successful in 11m53s
Tests and linters / Tests (1.21) (pull_request) Successful in 12m3s
Tests and linters / Lint (pull_request) Successful in 12m23s
Tests and linters / Tests with -race (pull_request) Successful in 12m41s
ContainersOf() is better in almost every aspect, besides creating a
session when the containers number is between 1024 and 2048 (prefetch
script does limited unwrapping). Making List() private helps to ensure
it is no longer used and can be safely removed in future.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-06 20:36:16 +03:00