Skip to content

Commit

Permalink
remove trailing slash from tx/
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebEverett committed Mar 14, 2022
2 parents a7a7548 + 602dc01 commit c2ebfa4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ 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.61 (2022-03-13)
- **changed:** removed trailing slash from `tx/` post to be compatible with change in arweave gateway.

# v0.1.60 (2022-03-08)
- **changed:** `get_status` no longer panics on unspecified arweave response status, but instead returns and error containing the unspecified status.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "arloader"
authors = ["calebeverett <caleb@calebeverett.io>"]
description = "Command line application and library for uploading files to Arweave."
version = "0.1.60"
version = "0.1.61"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/CalebEverett/arloader"
Expand Down
2 changes: 1 addition & 1 deletion examples/upload_bundles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use url::Url;

// For smaller sample sizes, you may have to increase this to have the transactions mined.
const REWARD_MULTIPLIER: f32 = 2.0;
const NUM_FILES: usize = 200;
const NUM_FILES: usize = 20;
const FILE_SIZE: usize = 5_000_000;
const BUNDLE_SIZE: u64 = 100_000_000;
const BUFFER: usize = 5;
Expand Down
6 changes: 3 additions & 3 deletions examples/upload_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use tempdir::TempDir;
use url::Url;

// For smaller sample sizes, you may have to increase this to have the transactions mined.
const REWARD_MULTIPLIER: f32 = 2.0;
const NUM_FILES: usize = 1;
const FILE_SIZE: usize = 100_000_000;
const REWARD_MULTIPLIER: f32 = 3.0;
const NUM_FILES: usize = 2;
const FILE_SIZE: usize = 100_000;
const BUFFER: usize = 5;

#[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ impl Arweave {

let mut retries = 0;
let mut status = reqwest::StatusCode::NOT_FOUND;
let url = self.base_url.join("tx/")?;
let url = self.base_url.join("tx")?;
let client = reqwest::Client::new();

while (retries < CHUNKS_RETRIES) & (status != reqwest::StatusCode::OK) {
Expand Down

0 comments on commit c2ebfa4

Please sign in to comment.