Skip to content

Commit

Permalink
assign repository før service legges til i processors
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Dec 9, 2024
1 parent 8586c29 commit c577642
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ class ReplayValidatorService(
private val processors: MutableList<ReplayValidatorService>
) : PartitionProcessor {

private val log = logger()

internal val repository: ReplayValidatorRepository

init {
ReplayValidatorRepository().also {
repository = it
}
processors.add(this)
}

private val log = logger()

internal val repository = ReplayValidatorRepository()

override fun close() {
processors.remove(this)
repository.close()
Expand Down

0 comments on commit c577642

Please sign in to comment.