Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarred authored and dave-garred committed Sep 13, 2024
1 parent 1a8f6e7 commit 7f9ec87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cqrs-es"
version = "0.4.11"
version = "0.4.12"
authors = ["Dave Garred <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cqrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{AggregateContext, AggregateError};
/// 1. Loading all previous events for the aggregate instance.
/// 1. Applying these events, in order, to a new `Aggregate` in order to reach the correct state.
/// 1. Using the recreated `Aggregate` to handle an inbound `Command` producing events or an error
/// (see `handle` method in this trait).
/// (see `handle` method in this trait).
/// 1. Persisting any generated events or roll back in the event of an error.
///
/// To manage these tasks we use a `CqrsFramework`.
Expand Down
9 changes: 0 additions & 9 deletions src/persist/event_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,6 @@ pub(crate) mod shared_test {
}
}

pub(crate) struct MockEventIterator;
impl Iterator for MockEventIterator {
type Item = Result<SerializedEvent, PersistenceError>;

fn next(&mut self) -> Option<Self::Item> {
todo!()
}
}

pub(crate) struct MockRepo {
events_result: Mutex<Option<Result<Vec<SerializedEvent>, PersistenceError>>>,
last_events_result: Mutex<Option<Result<Vec<SerializedEvent>, PersistenceError>>>,
Expand Down

0 comments on commit 7f9ec87

Please sign in to comment.