Skip to content

Commit

Permalink
Removed unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
hnaderi committed Nov 14, 2023
1 parent af55c4f commit 5a94b4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/backend/src/main/scala/eventsourcing/Snapshot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ object SnapshotStore {
lc <- Resource.eval(
LRUCache[F, StreamId, AggregateState.Valid[S]](size)
)
pss = PersistedSnapshotStoreImpl(lc, store, q, maxBuffer, maxWait)
pss = PersistedSnapshotStoreImpl(lc, store, q)
flush = lc.byUsage.use(
Stream
.fromIterator(_, size min 1000)
Expand Down Expand Up @@ -115,9 +115,7 @@ type SnapshotItem[S] =
private[backend] final class PersistedSnapshotStoreImpl[F[_], S](
cache: LRUCache[F, StreamId, AggregateState.Valid[S]],
p: SnapshotPersistence[F, S],
q: Queue[F, SnapshotItem[S]],
maxBuffer: Int,
maxWait: FiniteDuration
q: Queue[F, SnapshotItem[S]]
)(using F: Temporal[F])
extends SnapshotStore[F, S] {
def get(id: StreamId): F[Option[AggregateState.Valid[S]]] =
Expand Down

0 comments on commit 5a94b4e

Please sign in to comment.