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

node: Use github.com/nspcc-dev/neofs-api-go/v2 module less #3079

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

cthulhu-rider
Copy link
Contributor

one more cut from #3057, continues #3078

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 0.53476% with 186 lines in your changes missing coverage. Please review.

Project coverage is 22.12%. Comparing base (b9c6492) to head (fdc0a42).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/get/v2/util.go 0.00% 113 Missing ⚠️
cmd/neofs-node/transport.go 0.00% 25 Missing ⚠️
pkg/services/object/search/v2/util.go 0.00% 20 Missing ⚠️
pkg/services/object/put/v2/streamer.go 0.00% 16 Missing ⚠️
pkg/network/cache/multi.go 0.00% 10 Missing ⚠️
pkg/services/object/internal/key.go 0.00% 1 Missing ⚠️
pkg/services/object/put/v2/service.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3079      +/-   ##
==========================================
- Coverage   22.14%   22.12%   -0.03%     
==========================================
  Files         794      794              
  Lines       59484    59563      +79     
==========================================
+ Hits        13175    13176       +1     
- Misses      45405    45483      +78     
  Partials      904      904              

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

This was the only direct importer of to-be-deprecated `neofs-api-go/v2`
module in `pkg/local_object_storage` space.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider force-pushed the avoid-apigo-req-forwarding branch 2 times, most recently from 798d7a0 to cf96d43 Compare January 10, 2025 13:43
@cthulhu-rider cthulhu-rider marked this pull request as ready for review January 10, 2025 14:11
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the last commit needs to be squashed. OK otherwise.

This refactors storage node app making it to use gRPC connection to
remote nodes for request forwarding without wrappers. The behavior is
preserved with some error text added/changed for the better.

Avoid importing `github.com/nspcc-dev/neofs-api-go/v2/rpc` packages. The
only place left will naturally go with coming SDK upgrade. One step
closer to whole `neofs-api-go` module's deprecation.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider force-pushed the avoid-apigo-req-forwarding branch from 8a9237a to fdc0a42 Compare January 13, 2025 07:19
@cthulhu-rider
Copy link
Contributor Author

sure, fixed

@roman-khimov roman-khimov merged commit c627b53 into master Jan 13, 2025
19 of 22 checks passed
@roman-khimov roman-khimov deleted the avoid-apigo-req-forwarding branch January 13, 2025 19:06
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