Closed marcorosa closed 7 years ago
I just have a couple of questions:
This change doesn't affect file download since the ShardManager
class (used for upload) is independent from the ShardingTool
class (used for download).
A further step can be merging these 2 classes into one.
I've taken a look into the storjlib
before this PR, and there seems to be no possibility for the user to decide the size or the number of shards.
@marcorosa that's what I thought.
I'll still merge this PR after the build passes.
@steenzout test fixed according to previous commits
I propose the following changes in class
ShardManager
:num_chunks
), use it! In fact, at the current version, we let the user specify the shard dimension but this parameter is not taken into consideration.get_optimal_shard_parameters
returns the number of shards and their dimension, but the dimension is not used. So I propose to change it intoget_optimal_shard_number
since what we use is only the number of shards