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

fix: Close fetcher on error #210

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

AndrewSisley
Copy link
Contributor

Closes #171

Didn't go for a defer as we still care about potential df.Close errors if there is no happy-path error

@AndrewSisley AndrewSisley added the area/collections Related to the collections system label Feb 14, 2022
@AndrewSisley AndrewSisley self-assigned this Feb 14, 2022
@codecov
Copy link

codecov bot commented Feb 14, 2022

Codecov Report

Merging #210 (d5d32f4) into develop (b93bafe) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #210      +/-   ##
===========================================
- Coverage    57.42%   57.40%   -0.02%     
===========================================
  Files           98       98              
  Lines         9616     9619       +3     
===========================================
  Hits          5522     5522              
- Misses        3479     3482       +3     
  Partials       615      615              
Impacted Files Coverage Δ
db/collection_get.go 50.00% <0.00%> (-3.34%) ⬇️

Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit 7554008 into develop Feb 14, 2022
@AndrewSisley AndrewSisley deleted the sisley/fix/I171-collection-df-close-on-err branch February 14, 2022 20:55
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collections Related to the collections system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

collection_get.go.get only Closes doc fetcher if there are no errors
2 participants