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

fix(kratos): linter #2746

Merged

Conversation

demoManito
Copy link
Member

@demoManito demoManito commented Mar 18, 2023

Description (what this PR does / why we need it):

image

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2023

Codecov Report

Merging #2746 (d3cd406) into main (0c2d263) will increase coverage by 0.04%.
The diff coverage is 78.94%.

❗ Current head d3cd406 differs from pull request most recent head 5a44b27. Consider uploading reports for the commit 5a44b27 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #2746      +/-   ##
==========================================
+ Coverage   84.74%   84.78%   +0.04%     
==========================================
  Files          88       88              
  Lines        3893     3891       -2     
==========================================
  Hits         3299     3299              
+ Misses        419      418       -1     
+ Partials      175      174       -1     
Impacted Files Coverage Δ
config/options.go 88.52% <0.00%> (ø)
transport/grpc/client.go 83.62% <0.00%> (ø)
transport/http/server.go 74.50% <0.00%> (ø)
transport/grpc/server.go 83.83% <50.00%> (ø)
log/log.go 100.00% <100.00%> (+6.66%) ⬆️
middleware/tracing/statsHandler.go 100.00% <100.00%> (ø)
middleware/tracing/tracer.go 100.00% <100.00%> (ø)
selector/p2c/p2c.go 94.59% <100.00%> (ø)
transport/grpc/resolver/direct/builder.go 100.00% <100.00%> (ø)
transport/grpc/resolver/direct/resolver.go 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

} else {
kv, err := e.getConfig(ns)
if err != nil {
log.Errorf("apollo get config failed,err:%v", err)
continue
}
kvs = append(kvs, kv)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

image

@demoManito demoManito closed this Mar 18, 2023
@demoManito demoManito reopened this Mar 21, 2023
@demoManito demoManito changed the title chore(kratos): rename unused parameters fix(kratos): linter Mar 21, 2023
Comment on lines -30 to -33
if err := c.logger.Log(level, kvs...); err != nil {
return err
}
return nil
Copy link
Member Author

@demoManito demoManito Mar 21, 2023

Choose a reason for hiding this comment

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

image

@demoManito demoManito force-pushed the chore/rename-unused-parameters branch from 92f377e to 5a44b27 Compare March 21, 2023 07:19
@shenqidebaozi shenqidebaozi merged commit 9a973d2 into go-kratos:main Mar 21, 2023
@demoManito demoManito deleted the chore/rename-unused-parameters branch April 21, 2023 08:35
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.

3 participants