Remove redundant return value
And don't log the same error twice.
This commit is contained in:
parent
d18ea501b7
commit
d5ef18337c
|
@ -453,13 +453,11 @@ impl Bank {
|
|||
}
|
||||
|
||||
/// Process an ordered list of entries.
|
||||
pub fn process_entries(&self, entries: Vec<Entry>) -> Result<u64> {
|
||||
let mut entry_count = 0;
|
||||
pub fn process_entries(&self, entries: Vec<Entry>) -> Result<()> {
|
||||
for entry in entries {
|
||||
entry_count += 1;
|
||||
self.process_entry(entry)?;
|
||||
}
|
||||
Ok(entry_count)
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Append entry blocks to the ledger, verifying them along the way.
|
||||
|
|
|
@ -62,11 +62,7 @@ impl ReplicateStage {
|
|||
ledger_writer.write_entries(entries)?;
|
||||
}
|
||||
|
||||
if res.is_err() {
|
||||
error!("process_entries {:?}", res);
|
||||
}
|
||||
let _ = res?;
|
||||
|
||||
res?;
|
||||
Ok(())
|
||||
}
|
||||
pub fn new(
|
||||
|
|
Loading…
Reference in New Issue