diff --git a/src/contrib/persistence/Akka.Persistence.Sql.Common/Journal/QueryApi.cs b/src/contrib/persistence/Akka.Persistence.Sql.Common/Journal/QueryApi.cs index 6157b05861a..97d4b27a7f9 100644 --- a/src/contrib/persistence/Akka.Persistence.Sql.Common/Journal/QueryApi.cs +++ b/src/contrib/persistence/Akka.Persistence.Sql.Common/Journal/QueryApi.cs @@ -268,17 +268,17 @@ public bool Equals(EventReplaySuccess other) return Equals(HighestSequenceNr, other.HighestSequenceNr); } - /// + public override bool Equals(object obj) { if (!(obj is EventReplaySuccess evt)) return false; return Equals(evt); } - /// + public override int GetHashCode() => HighestSequenceNr.GetHashCode(); - /// + public override string ToString() => $"EventReplaySuccess"; } @@ -302,17 +302,17 @@ public bool Equals(EventReplayFailure other) return Equals(Cause, other.Cause); } - /// + public override bool Equals(object obj) { if (!(obj is EventReplayFailure f)) return false; return Equals(f); } - /// + public override int GetHashCode() => Cause.GetHashCode(); - /// + public override string ToString() => $"EventReplayFailure"; }