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

delete broadcasts which no longer have any active messages #32

Merged
merged 2 commits into from
Apr 30, 2019

Conversation

nicpottier
Copy link
Contributor

No description provided.

@nicpottier nicpottier requested a review from rowanseymour April 26, 2019 18:12
@codecov-io
Copy link

codecov-io commented Apr 26, 2019

Codecov Report

Merging #32 into master will decrease coverage by 0.89%.
The diff coverage is 55%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #32     +/-   ##
=========================================
- Coverage   69.07%   68.18%   -0.9%     
=========================================
  Files           3        3             
  Lines         886      946     +60     
=========================================
+ Hits          612      645     +33     
- Misses        165      181     +16     
- Partials      109      120     +11
Impacted Files Coverage Δ
archiver.go 67.67% <55%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f164ff...d7d956c. Read the comment docs.


// make sure we have no active messages
var msgCount int64
err = db.Get(&msgCount, `SELECT count(*) FROM msgs_msg WHERE broadcast_id = $1`, broadcastID)
Copy link
Member

Choose a reason for hiding this comment

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

maybe not so important but if you just want to know if any rows exist, don't need to full count

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, felt the error message was more interesting with count. In theory we should never really get to this case anyways.

@nicpottier nicpottier merged commit ba708c2 into master Apr 30, 2019
@nicpottier nicpottier deleted the delete-broadcasts branch April 30, 2019 18:52
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