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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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 (8a9237a).

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 <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the avoid-apigo-req-forwarding branch from d4cab78 to 798d7a0 Compare January 10, 2025 09:27
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 <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the avoid-apigo-req-forwarding branch from 798d7a0 to cf96d43 Compare January 10, 2025 13:43
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 <[email protected]>
@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.

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