Skip to content

Conversation

lwsanty
Copy link
Contributor

@lwsanty lwsanty commented Sep 17, 2019

add cases with handling timeouts, immediate stops and send metrics errors

Signed-off-by: lwsanty [email protected]

add cases with handling timeouts, immediate stops and send metrics errors

Signed-off-by: lwsanty <[email protected]>
@lwsanty lwsanty self-assigned this Sep 17, 2019
{"NonImmediateWithoutDelay", false, time.Second, 0, 1},
{"NonImmediateWithDelay", false, 500 * time.Millisecond, time.Second, 2},
} {
c := c
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this variable copy/shadowing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably it's a habit left after scopelint :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know about that linter 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this one is a part of golangci-lint
we could probably use it if we have a need in linters, however we should consider that they consume too much RAM

@mcarmonaa mcarmonaa merged commit 399c415 into src-d:master Sep 23, 2019
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