Skip to content

Commit

Permalink
node/object: Refactor code making request forwarding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cthulhu-rider committed Jan 10, 2025
1 parent cf96d43 commit 8a9237a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/object/get/v2/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func (s *Service) toHashRangePrm(req *objectV2.GetRangeHashRequest) (*getsvc.Ran
}

// verify response structure
resp2 := new(objectV2.GetRangeResponse)
resp2 := new(objectV2.GetRangeHashResponse)
if err = resp2.FromGRPCMessage(resp); err != nil {
panic(err) // can only fail on wrong type, here it's correct

Check warning on line 490 in pkg/services/object/get/v2/util.go

View check run for this annotation

Codecov / codecov/patch

pkg/services/object/get/v2/util.go#L488-L490

Added lines #L488 - L490 were not covered by tests
}
Expand Down

0 comments on commit 8a9237a

Please sign in to comment.