Less output
This commit is contained in:
parent
ea75564851
commit
a54f3158f1
@ -433,6 +433,7 @@ where
|
|||||||
if let TableRPC::<F>::SyncRPC(SyncRPC::Difference(mut diff_ranges, diff_items)) =
|
if let TableRPC::<F>::SyncRPC(SyncRPC::Difference(mut diff_ranges, diff_items)) =
|
||||||
rpc_resp
|
rpc_resp
|
||||||
{
|
{
|
||||||
|
if diff_ranges.len() > 0 || diff_items.len() > 0 {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"({}) Sync with {:?}: difference {} ranges, {} items",
|
"({}) Sync with {:?}: difference {} ranges, {} items",
|
||||||
self.table.name,
|
self.table.name,
|
||||||
@ -440,6 +441,7 @@ where
|
|||||||
diff_ranges.len(),
|
diff_ranges.len(),
|
||||||
diff_items.len()
|
diff_items.len()
|
||||||
);
|
);
|
||||||
|
}
|
||||||
let mut items_to_send = vec![];
|
let mut items_to_send = vec![];
|
||||||
for differing in diff_ranges.drain(..) {
|
for differing in diff_ranges.drain(..) {
|
||||||
if differing.level == 0 {
|
if differing.level == 0 {
|
||||||
@ -583,6 +585,7 @@ where
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|x| x.children.len())
|
.map(|x| x.children.len())
|
||||||
.fold(0, |x, y| x + y);
|
.fold(0, |x, y| x + y);
|
||||||
|
if ret_ranges.len() > 0 || ret_items.len() > 0 {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"({}) Checksum comparison RPC: {} different + {} items for {} received",
|
"({}) Checksum comparison RPC: {} different + {} items for {} received",
|
||||||
self.table.name,
|
self.table.name,
|
||||||
@ -590,6 +593,7 @@ where
|
|||||||
ret_items.len(),
|
ret_items.len(),
|
||||||
n_checksums
|
n_checksums
|
||||||
);
|
);
|
||||||
|
}
|
||||||
Ok(SyncRPC::Difference(ret_ranges, ret_items))
|
Ok(SyncRPC::Difference(ret_ranges, ret_items))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user