Skip to content

Commit

Permalink
Made the output a concrete type so that its easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sharratt committed Mar 21, 2024
1 parent f071c56 commit 078fe58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/journal/src/concrete/log_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl LogFileJournal {
}

/// Create a new journal from a buffer
pub fn from_buffer(buffer: OwnedBuffer) -> Box<DynJournal> {
pub fn from_buffer(buffer: OwnedBuffer) -> RecombinedJournal {
// Create the rx
let rx = LogFileJournalRx {
tx: None,
Expand All @@ -158,7 +158,7 @@ impl LogFileJournal {
let tx = UnsupportedJournal::default();

// Now recombine
Box::new(RecombinedJournal::new(Box::new(tx), Box::new(rx)))
RecombinedJournal::new(Box::new(tx), Box::new(rx))
}
}

Expand Down

0 comments on commit 078fe58

Please sign in to comment.