-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
server: fix unexported-return lint issue #19052
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: adeyemi <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aladesawe The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @aladesawe. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi, @aladesawe. Thanks for your pull request 🙇.
Do you know how many issues there are in server? If there are not too many, it may be better to open a single pull request. We ideally want to keep the PR under 100 or 200 lines. Thanks, again. |
Hello @ivanvc sure thing, I'll pull more updates into this PR. There are about 10 more files with the error under the server module. |
…sabled Signed-off-by: adeyemi <[email protected]>
/ok-to-test |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 23 files with indirect coverage changes @@ Coverage Diff @@
## main #19052 +/- ##
==========================================
- Coverage 68.80% 68.70% -0.10%
==========================================
Files 420 420
Lines 35623 35626 +3
==========================================
- Hits 24509 24477 -32
- Misses 9694 9725 +31
- Partials 1420 1424 +4 Continue to review full report in Codecov by Sentry.
|
/test pull-etcd-govulncheck |
PR to fix
unexported-return
lint issues under theserver
folder as mentioned in Issue 18370.This PR:
auth
package, and uses the existingAuthStore
interface as the type returned byNewAuthStore
in the auth/store.go fileNewServerVersionAdapter
returnsserverversion.Server
interfaceApplierMembership
forNewApplierMembership
's return typeStorageRecorder
return type forNewStorageRecorder
andNewStorageRecorderStream
unexported-return
for the mvcc/kvstore.goNewStore
function. It appears the function is used internally, opted to disable versus using type assertions in the mvcc packageWALVersion
interface definition to thewal
package, and using an alias in schemaPlease read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.