-
Notifications
You must be signed in to change notification settings - Fork 78
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
[patch] bugfix error assertion #680
[patch] bugfix error assertion #680
Conversation
Signed-off-by: kpango <i.can.feel.gravity@gmail.com>
Best reviewed: commit by commit
Optimal code review plan (1 warning)
|
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #680 +/- ##
==========================================
+ Coverage 15.13% 15.58% +0.44%
==========================================
Files 411 413 +2
Lines 21537 21667 +130
==========================================
+ Hits 3259 3376 +117
- Misses 18024 18039 +15
+ Partials 254 252 -2
Continue to review full report at Codecov.
|
…error-assert-instantiate-problem Signed-off-by: kpango <i.can.feel.gravity@gmail.com>
a1e2c77
to
5491f0e
Compare
@@ -260,7 +278,12 @@ func (c *client) deleteMulti(ctx context.Context, pfx, pfxInv string, keys ...st | |||
var errs error | |||
for k, res := range ress { | |||
if err = res.Err(); err != nil { | |||
errs = errors.Wrap(errs, errors.ErrRedisDeleteOperationFailed(k, err).Error()) | |||
err = errors.ErrRedisDeleteOperationFailed(k, err) | |||
if errs == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
if statements should only be cuddled with assignments used in the if statement itself (wsl)
internal/db/rdb/mysql/mysql.go
Outdated
err = errors.ErrMySQLConnectionPingFailed | ||
} | ||
cerr := ctx.Err() | ||
if cerr != nil{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci] reported by reviewdog 🐶
File is not gofmt
-ed with -s
(gofmt)
/rebase |
[REBASE] Rebase triggered by kpango for branch: bugfix/internal-errors/DB-IsXXXX-function-error-assert-instantiate-problem |
[REBASE] Failed to rebase. |
/format |
[FORMAT] Updating license headers and formatting go codes triggered by kpango. |
Signed-off-by: vdaas-ci <ci@vdaas.org>
Signed-off-by: kpango i.can.feel.gravity@gmail.com
Description:
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: