fixes to K2V client #571
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ struct BatchOutputKind {
|
||||||
impl BatchOutputKind {
|
impl BatchOutputKind {
|
||||||
fn display_human_output(&self, values: BTreeMap<String, CausalValue>) -> ! {
|
fn display_human_output(&self, values: BTreeMap<String, CausalValue>) -> ! {
|
||||||
for (key, values) in values {
|
for (key, values) in values {
|
||||||
println!("key: {}", key);
|
println!("sort_key: {}", key);
|
||||||
let causality: String = values.causality.into();
|
let causality: String = values.causality.into();
|
||||||
println!("causality: {}", causality);
|
println!("causality: {}", causality);
|
||||||
for value in values.value {
|
for value in values.value {
|
||||||
|
@ -522,7 +522,7 @@ async fn main() -> Result<(), Error> {
|
||||||
value
|
value
|
||||||
.as_object_mut()
|
.as_object_mut()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.insert("sort_key".to_owned(), k.into());
|
.insert("partition_key".to_owned(), k.into());
|
||||||
value
|
value
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
@ -539,7 +539,7 @@ async fn main() -> Result<(), Error> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut to_print = Vec::new();
|
let mut to_print = Vec::new();
|
||||||
to_print.push(format!("key:\tentries\tconflicts\tvalues\tbytes"));
|
to_print.push(format!("partition_key\tentries\tconflicts\tvalues\tbytes"));
|
||||||
for (k, v) in res.items {
|
for (k, v) in res.items {
|
||||||
to_print.push(format!(
|
to_print.push(format!(
|
||||||
"{}\t{}\t{}\t{}\t{}",
|
"{}\t{}\t{}\t{}\t{}",
|
||||||
|
|
Loading…
Reference in a new issue