Skip to content

Commit

Permalink
fix so this PR is consistent with Adam's recent refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbifish committed Aug 19, 2019
1 parent df7be0b commit 723770b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ impl<'a> Endpoint<(), (), Vec<KeyValuePair>> for WriteBulk<'a> {
}
fn path(&self) -> String {
// Need multiple cases for presence of ttl or expiration parameters.
format!("accounts/{}/storage/kv/namespaces/{}/bulk", self.account_identifier, self.namespace_identifier)
format!(
"accounts/{}/storage/kv/namespaces/{}/bulk",
self.account_identifier, self.namespace_identifier
)
}
fn body(&self) -> Option<Vec<KeyValuePair>> {
Some(self.bulk_key_value_pairs.clone())
Expand All @@ -34,4 +37,4 @@ pub struct KeyValuePair {
pub expiration_ttl: Option<i32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub base64: Option<bool>,
}
}

0 comments on commit 723770b

Please sign in to comment.