From ea5878f590f17b6b02fdf89e68fdeaac8fa7a328 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 1 Jul 2016 10:08:09 +0100 Subject: [PATCH] b2: set cutoff for chunked upload to 200MB #420 This is the value recommended in the b2 integration checklist: https://www.backblaze.com/b2/docs/integration_checklist.html --- b2/b2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2/b2.go b/b2/b2.go index 54cdc4f89..801aa2492 100644 --- a/b2/b2.go +++ b/b2/b2.go @@ -45,7 +45,7 @@ const ( var ( minChunkSize = fs.SizeSuffix(100E6) chunkSize = fs.SizeSuffix(96 * 1024 * 1024) - uploadCutoff = fs.SizeSuffix(5E9) + uploadCutoff = fs.SizeSuffix(200E6) errorAuthTokenExpired = errors.New("b2 auth token expired") errorUploadTokenExpired = errors.New("b2 upload token expired") errorUploadPartTokenExpired = errors.New("b2 upload part token expired")