Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: Convert slices to arrays instead of copy where possible #2885

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

cthulhu-rider
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jul 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.

Project coverage is 23.74%. Comparing base (e6eeda1) to head (35ca2f1).

Files Patch % Lines
cmd/neofs-adm/internal/modules/morph/container.go 0.00% 17 Missing ⚠️
cmd/neofs-adm/internal/modules/morph/config.go 0.00% 1 Missing ⚠️
cmd/neofs-node/reputation/intermediate/contract.go 0.00% 1 Missing ⚠️
...kg/services/object_manager/storagegroup/collect.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2885   +/-   ##
=======================================
  Coverage   23.74%   23.74%           
=======================================
  Files         774      774           
  Lines       44801    44783   -18     
=======================================
- Hits        10636    10634    -2     
+ Misses      33311    33294   -17     
- Partials      854      855    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Maps are much easier to implement/understand than `sort.Search`.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
It makes no sense to preliminary request container list from the
contract: the list is specified via command flag. Verification of the
container IDs is also better to be done before any network access.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Became possible with Go 1.20.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@carpawell carpawell merged commit 3c616d4 into master Jul 9, 2024
18 of 22 checks passed
@carpawell carpawell deleted the array-cp branch July 9, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants