Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
nitpicky naming consistency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbifish committed Aug 19, 2019
1 parent a3316a9 commit 9b9ee7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/kv/write_bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::fs::metadata;
use std::path::Path;

use failure::bail;
use cloudflare::workerskv::write_bulk::BulkWrite;
use cloudflare::workerskv::write_bulk::WriteBulk;
use cloudflare::workerskv::write_bulk::KeyValuePair;

use crate::terminal::message;
Expand Down Expand Up @@ -46,14 +46,14 @@ pub fn write_bulk(namespace_id: &str, filename: &Path) -> Result<(), failure::Er
bail!("Too many key-value pairs uploaded at once {} while max is 10,000", pairs.len());
}

let response = client.request(&BulkWrite {
let response = client.request(&WriteBulk {
account_identifier: &account_id,
namespace_identifier: namespace_id,
bulk_key_value_pairs: pairs,
});

match response {
Ok(_success) => message::success(&format!("Success")),
Ok(_success) => message::success("Success"),
Err(e) => super::print_error(e),
}

Expand Down

0 comments on commit 9b9ee7d

Please sign in to comment.