Skip to content

Commit

Permalink
Revert "#3078 Providing a version for aggregating that is too high sh…
Browse files Browse the repository at this point in the history
…ould agg…"

This reverts commit ba0515b.
  • Loading branch information
jeremydmiller committed Apr 10, 2024
1 parent 36afb2a commit 1f103e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
62 changes: 0 additions & 62 deletions src/EventSourcingTests/Bugs/Bug_3078_providing_version.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Marten/Events/QueryEventStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public async Task<IReadOnlyList<IEvent>> FetchStreamAsync(string streamKey, long
T? state = null, long fromVersion = 0, CancellationToken token = default) where T : class
{
var events = await FetchStreamAsync(streamId, version, timestamp, fromVersion, token).ConfigureAwait(false);
if (!events.Any() || events.Last().Version < version)
if (!events.Any())
{
return state;
}
Expand Down

0 comments on commit 1f103e0

Please sign in to comment.