Allow the logger to inject Tick events on its own

This commit is contained in:
Greg Fitzgerald
2018-02-21 11:33:42 -07:00
parent d7dfa8c22d
commit b34d2d7dee
3 changed files with 50 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ fn create_log(hist: &Historian) -> Result<(), SendError<Event>> {
fn main() {
let seed = Sha256Hash::default();
let hist = Historian::new(&seed);
let hist = Historian::new(&seed, None);
create_log(&hist).expect("send error");
drop(hist.sender);
let entries: Vec<Entry> = hist.receiver.iter().collect();