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

Remove blank when all parameters are not used and Add ErrJobFuncNotFound #1879

Conversation

vankichi
Copy link
Contributor

@vankichi vankichi commented Nov 28, 2022

Description:

I have removed the blank _ when all the parameters are not used in the target function or method.
And more, I have added the ErrJobFuncNotFound to return the not found error at the internal/worker/queue.go.

Related Issue:

Versions:

  • Go Version: 1.19.2
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 1.14.8

Checklist:

Special notes for your reviewer:

Comment on lines 48 to 50
ErrJobFuncNotFound = func() error {
return New("JobFunc is not found")
}
Copy link
Contributor Author

@vankichi vankichi Nov 28, 2022

Choose a reason for hiding this comment

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

@vankichi vankichi changed the title Remove blank when all parameters are not used and Add ErrJobNotFound Remove blank when all parameters are not used and Add ErrJobFuncNotFound Nov 28, 2022
@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Base: 50.23% // Head: 30.37% // Decreases project coverage by -19.86% ⚠️

Coverage data is based on head (dda5e15) compared to base (97eed29).
Patch coverage: 32.83% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1879       +/-   ##
===========================================
- Coverage   50.23%   30.37%   -19.87%     
===========================================
  Files         231      365      +134     
  Lines       13464    33763    +20299     
===========================================
+ Hits         6764    10254     +3490     
- Misses       6499    23094    +16595     
- Partials      201      415      +214     
Impacted Files Coverage Δ
cmd/tools/cli/loadtest/main.go 0.00% <ø> (ø)
hack/benchmark/assets/x1b/loader.go 0.00% <0.00%> (ø)
hack/benchmark/internal/assets/dataset.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/insert.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/operation.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/option.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/remove.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/search.go 0.00% <ø> (ø)
hack/benchmark/internal/operation/util.go 0.00% <ø> (ø)
...ck/benchmark/internal/starter/gateway/vald/vald.go 0.00% <0.00%> (ø)
... and 287 more

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

internal/errors/worker.go Outdated Show resolved Hide resolved
Co-authored-by: Kevin Diu <kevindiujp@gmail.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 28, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: dda5e15
Status: ✅  Deploy successful!
Preview URL: https://ca89872d.vald.pages.dev
Branch Preview URL: https://refactor-internal-pkg-remove.vald.pages.dev

View logs

kevindiu
kevindiu previously approved these changes Nov 28, 2022
Signed-off-by: vankichi <kyukawa315@gmail.com>
internal/errors/cassandra.go Outdated Show resolved Hide resolved
internal/errors/cassandra.go Outdated Show resolved Hide resolved
internal/errors/mysql.go Outdated Show resolved Hide resolved
internal/errors/mysql.go Outdated Show resolved Hide resolved
internal/errors/redis.go Outdated Show resolved Hide resolved
Signed-off-by: vankichi <kyukawa315@gmail.com>
@github-actions github-actions bot added size/XL and removed size/L labels Nov 30, 2022
internal/errors/mysql.go Outdated Show resolved Hide resolved
kpango
kpango previously approved these changes Dec 1, 2022
Signed-off-by: vankichi <kyukawa315@gmail.com>
Copy link
Contributor

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

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

LGTM

…paramteres-are-not-used-and-add-ErrJobNotFound-function
@vankichi vankichi merged commit 9bb7508 into main Dec 2, 2022
@vankichi vankichi deleted the refactor/internal-pkg/remove-blank-when-all-paramteres-are-not-used-and-add-ErrJobNotFound-function branch December 2, 2022 00:54
@kpango kpango mentioned this pull request Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants