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

added lint checker in CI and fixes lint errors #253

Closed
wants to merge 2 commits into from

Conversation

Omkar0114
Copy link

What does this PR change?

  • add lint checker in CI and fixes the lint errors

Does the PR depend on any other PRs or Issues? If yes, please list them.

Checklist

I confirm, that I have...

  • Read and followed the contributing guide in CONTRIBUTING.md
  • Added tests for this PR
  • Formatted the code using go fmt (if applicable)
  • Updated documentation on the Paralus docs site (if applicable)
  • Updated CHANGELOG.md

Signed-off-by: Omkar <opkulkarni0104@gmail.com>
s.relayMutex.RLock()
now := time.Now().Unix()
if relayList, ok := s.RelayMap[req.ou]; ok {
for relayuuid, robj := range relayList {
if now > robj.timeStamp && (now-robj.timeStamp) > int64(maxRelayIdle) { //5min max toleration
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this is removed by mistake. @Omkar0114 Can you check and revert back change?

Copy link
Member

Choose a reason for hiding this comment

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

Also check below errors:

Error: server/relaypeerservice.go:186:2: expected declaration, found s
Error: server/relaypeerservice.go:406:2: expected declaration, found s
Error: server/relaypeerservice.go:451:2: expected declaration, found ctx
Error: server/relaypeerservice.go:537:2: expected declaration, found ctx

Copy link
Author

Choose a reason for hiding this comment

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

I make the change revert in server/relaypeerservice.go and few errors I saw in the local copy. Let's check now

Signed-off-by: Omkar <opkulkarni0104@gmail.com>
@akshay196
Copy link
Member

@Omkar0114 There are more go lint errors. Can you please take a look and fix them?
You can run golangci-lint locally to confirm after errors are resolved.

@akshay196
Copy link
Member

Hey @Omkar0114 Did you get a chance to take a look? Need to fix CI failures. Also rebase your branch.

@akshay196
Copy link
Member

Hey @Omkar0114 Checking if you're still working on this PR.

@Omkar0114
Copy link
Author

Hey @akshay196
So sorry for the late reply as I was a little busy with my college stuff. I am not working on this issue right now.

@akshay196
Copy link
Member

@Omkar0114 no worries. Unassigning issue so others can contribute.

@akshay196
Copy link
Member

Closing because stale PR.

@akshay196 akshay196 closed this Apr 23, 2024
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.

Add Golang linting in CI and remove unreachable code from the repo
2 participants