Sha256Hash -> Hash

Because in Loom, there's just the one. Hopefully no worries that it
shares a name with std::Hash.
This commit is contained in:
Greg Fitzgerald
2018-03-06 17:36:45 -07:00
parent 1436bb1ff2
commit b725fdb093
12 changed files with 65 additions and 84 deletions

View File

@@ -7,7 +7,7 @@
use std::sync::mpsc::{Receiver, SyncSender, TryRecvError};
use std::time::{Duration, Instant};
use hash::Sha256Hash;
use hash::Hash;
use entry::{create_entry_mut, Entry};
use event::Event;
use serde::Serialize;
@@ -23,7 +23,7 @@ pub enum ExitReason {
pub struct Logger<T> {
pub sender: SyncSender<Entry<T>>,
pub receiver: Receiver<Event<T>>,
pub last_id: Sha256Hash,
pub last_id: Hash,
pub num_hashes: u64,
pub num_ticks: u64,
}
@@ -32,7 +32,7 @@ impl<T: Serialize + Clone + Debug> Logger<T> {
pub fn new(
receiver: Receiver<Event<T>>,
sender: SyncSender<Entry<T>>,
start_hash: Sha256Hash,
start_hash: Hash,
) -> Self {
Logger {
receiver,