Skip to content

Commit

Permalink
Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed Jun 7, 2023
1 parent f49e181 commit 1ec1a1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Qowaiv.DomainModel/EventBuffer_TId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ internal EventBuffer(TId aggregateId, long offset, long committed, AppendOnlyCol
public int Count => Buffer.Count;

/// <summary>Get all committed events in the event buffer.</summary>
public IEnumerable<object> Committed => Buffer.Take(CommitedOffset());
public IEnumerable<object> Committed => Buffer.Take(CommittedOffset());

/// <summary>Get all uncommitted events in the event buffer.</summary>
public IEnumerable<object> Uncommitted => Buffer.Skip(CommitedOffset());
public IEnumerable<object> Uncommitted => Buffer.Skip(CommittedOffset());

[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private int CommitedOffset() => checked((int)(CommittedVersion - Offset));
private int CommittedOffset() => checked((int)(CommittedVersion - Offset));

/// <summary>Returns true if the event buffer contains at least one uncommitted event.</summary>
public bool HasUncommitted => Version != CommittedVersion;
Expand Down

0 comments on commit 1ec1a1a

Please sign in to comment.