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: Return status responses only #2846

Merged
merged 1 commit into from
May 13, 2024
Merged

node: Return status responses only #2846

merged 1 commit into from
May 13, 2024

Conversation

cthulhu-rider
Copy link
Contributor

support for non-status returns makes no sense after such a period

NeoFS statuses were introduced a long time ago. Until now, the server
supported responses to "old" clients with gRPC statuses. However, now
this approach is considered incorrect since it does not allow
integrating applications with the NeoFS behavioral model.

Refs #961.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Copy link

codecov bot commented May 6, 2024

Codecov Report

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

Project coverage is 23.64%. Comparing base (561ea49) to head (775f168).

Files Patch % Lines
pkg/services/util/sign.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2846      +/-   ##
==========================================
+ Coverage   23.63%   23.64%   +0.01%     
==========================================
  Files         769      769              
  Lines       44594    44572      -22     
==========================================
  Hits        10541    10541              
+ Misses      33202    33180      -22     
  Partials      851      851              

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

if err = signature.SignServiceMessage(s.key, resp); err != nil {
// We can't pass this error as status code since response will be unsigned.
// Isn't expected in practice, so panic is ok here.
panic(err)
Copy link
Member

Choose a reason for hiding this comment

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

Brutal. We can log and close the connection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@roman-khimov roman-khimov merged commit 5269eb9 into master May 13, 2024
17 of 20 checks passed
@roman-khimov roman-khimov deleted the no-apigo branch May 13, 2024 13:31
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