Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Make sure to wait for DLQ routines to exit #201

Merged
merged 3 commits into from
May 15, 2017
Merged

Make sure to wait for DLQ routines to exit #201

merged 3 commits into from
May 15, 2017

Conversation

aravindvs
Copy link
Contributor

We need to make sure we actually wait for the DLQ routines to
exit.

We need to make sure we actually wait for the DLQ routines to
exit.
@aravindvs aravindvs requested a review from kirg May 10, 2017 16:38
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 67.701% when pulling d7c5193 on fix_race into f1b4e67 on master.

Copy link
Contributor

@kirg kirg left a comment

Choose a reason for hiding this comment

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

minor comment .. otherwise lgtm.

@@ -81,6 +82,7 @@ type deadLetterQueue struct {
closeCh chan struct{}
consumerM3Client metrics.Client
m3Client metrics.Client
dlqWG sync.WaitGroup
Copy link
Contributor

Choose a reason for hiding this comment

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

you might want to call it just 'wg' .. when we use it, we do "dlq.dlqWg.Wait()", etc which has "stutter" (https://github.com/golang/go/wiki/CodeReviewComments#named-result-parameters).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 68.319% when pulling d492504 on fix_race into e9bb700 on master.

@aravindvs aravindvs merged commit f69b790 into master May 15, 2017
@aravindvs aravindvs deleted the fix_race branch May 15, 2017 18:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants