storagenode/piecestore: use actual Initial/MaxStep defaults
storj/storj uses storj/uplink and storj/uplink uses storj/storj (for integration test). Without using the real defaults (instead of hard coded ones) in storj/storj, we couldn't modify them. (modification in uplink will fail when storj/storj is used for integration test, with the unchanged, hard-coded defaults). Change-Id: Ifa68567dc2d5c8d08af8041ac338870c4fc26d45
This commit is contained in:
parent
f550f7e159
commit
462c16eb9b
@ -94,8 +94,8 @@ func TestUploadAndPartialDownload(t *testing.T) {
|
||||
}
|
||||
|
||||
func calcUploadOrderMax(size int64) (ordered int64) {
|
||||
initialStep := 64 * memory.KiB.Int64()
|
||||
maxStep := 256 * memory.KiB.Int64()
|
||||
initialStep := piecestore.DefaultConfig.InitialStep * memory.KiB.Int64()
|
||||
maxStep := piecestore.DefaultConfig.MaximumStep * memory.KiB.Int64()
|
||||
currentStep := initialStep
|
||||
ordered = 0
|
||||
for ordered < size {
|
||||
|
Loading…
Reference in New Issue
Block a user