Skip to content

fix(gRPC): golang CI Linter failure on http2Client #1706

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

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

DMwangnima
Copy link
Contributor

What type of PR is this?

fix

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
fix CI Linter:
Error: pkg/remote/trans/nphttp2/grpc/http2_client.go:314:2: SA4005: ineffective assignment to field closeStreamTask.toCloseStreams (staticcheck)
task.toCloseStreams = task.toCloseStreams[:0]
^
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@DMwangnima DMwangnima requested review from a team as code owners February 17, 2025 11:10
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.35%. Comparing base (0880142) to head (2cf03dc).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1706      +/-   ##
===========================================
- Coverage    57.41%   57.35%   -0.07%     
===========================================
  Files          408      408              
  Lines        37693    37693              
===========================================
- Hits         21643    21617      -26     
- Misses       14733    14751      +18     
- Partials      1317     1325       +8     
Flag Coverage Δ
integration 45.92% <0.00%> (-0.16%) ⬇️
unit 51.81% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@DMwangnima DMwangnima changed the title fix: golang CI Linter fix(gRPC): golang CI Linter failure on http2Client Feb 17, 2025
@DMwangnima DMwangnima merged commit 54bbbc0 into cloudwego:develop Feb 18, 2025
21 of 22 checks passed
@DMwangnima DMwangnima deleted the fix/golang_ci_lint branch February 18, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants