From b7a336f2392f6b37166ece676d3531e211978a0f Mon Sep 17 00:00:00 2001 From: Caleb Date: Sat, 26 Feb 2022 08:08:42 -0800 Subject: [PATCH] increase upload buffer size back to 5 --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- src/main.rs | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d0687..5503caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes starting with v0.1.34 to this project will be documented in The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# v0.1.59 (2022-02-26) +- **added:** add logic to retry uploading chunks until they receive a status 200 response. +- **changed:** increase upload buffer size to 5 now that chunks are retried if not 200 response. + # v0.1.58 (2022-02-24) - **changed:** reduced default upload buffer size to 1 to try to eliminate bundle verification errors. diff --git a/Cargo.toml b/Cargo.toml index 634afae..d22d503 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "arloader" authors = ["calebeverett "] description = "Command line application and library for uploading files to Arweave." -version = "0.1.58" +version = "0.1.59" edition = "2021" license = "Apache-2.0" repository = "https://github.com/CalebEverett/arloader" diff --git a/src/main.rs b/src/main.rs index 0946207..46b4234 100644 --- a/src/main.rs +++ b/src/main.rs @@ -519,7 +519,7 @@ fn get_app() -> App<'static, 'static> { .arg(ar_default_keypair()) .arg(with_sol_arg().requires("sol_keypair_path")) .arg(sol_keypair_path_arg()) - .arg(buffer_arg("1")) + .arg(buffer_arg("5")) .arg(bundle_size_arg()) .group( ArgGroup::with_name("ar_keypair") @@ -586,7 +586,7 @@ fn get_app() -> App<'static, 'static> { .arg(ar_default_keypair()) .arg(with_sol_arg().requires("sol_keypair_path")) .arg(sol_keypair_path_arg()) - .arg(buffer_arg("1")) + .arg(buffer_arg("5")) .arg(bundle_size_arg()) .group( ArgGroup::with_name("ar_keypair") @@ -620,7 +620,7 @@ fn get_app() -> App<'static, 'static> { .arg(ar_default_keypair()) .arg(with_sol_arg().requires("sol_keypair_path")) .arg(sol_keypair_path_arg()) - .arg(buffer_arg("1")) + .arg(buffer_arg("5")) .arg(bundle_size_arg()) .arg(link_file_arg()) .group(