Skip to content

Add option to disable blob hash verification #246

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

Merged
merged 6 commits into from
May 11, 2020
Merged

Conversation

yiranwang52
Copy link
Collaborator

@yiranwang52 yiranwang52 commented May 1, 2020

Hash calculation is expensive, especially when processing big layer pushed through proxy, as both proxy and origin need to verify it.

Moved all verification logic to store package, and added option to disable it.

@codecov
Copy link

codecov bot commented May 5, 2020

Codecov Report

Merging #246 into master will increase coverage by 0.09%.
The diff coverage is 52.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
+ Coverage   66.05%   66.14%   +0.09%     
==========================================
  Files         184      184              
  Lines        9105     9098       -7     
==========================================
+ Hits         6014     6018       +4     
+ Misses       2326     2319       -7     
+ Partials      765      761       -4     
Impacted Files Coverage Δ
lib/store/config.go 100.00% <ø> (ø)
origin/blobserver/server.go 69.80% <ø> (+0.99%) ⬆️
lib/store/ca_store.go 55.55% <40.00%> (-0.86%) ⬇️
lib/store/fixtures.go 84.61% <100.00%> (+0.30%) ⬆️
origin/blobserver/uploader.go 51.42% <100.00%> (+2.44%) ⬆️
lib/torrent/scheduler/events.go 74.03% <0.00%> (+1.44%) ⬆️

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 78baa5e...4741894. Read the comment docs.

@yiranwang52 yiranwang52 merged commit 2ebc167 into master May 11, 2020
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.

1 participant