Skip to content

Commit b51bb80

Browse files
committed
Add dispatcher to factory methods
1 parent d4dc05a commit b51bb80

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

publication/src/main/scala/hmda/publication/reports/AggregateAndDisclosureReports.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object AggregateAndDisclosureReports {
99
case class GenerateDisclosureByMSAReports(respondentId: String, fipsCode: Int)
1010
def props(): Props = Props(new AggregateAndDisclosureReports)
1111
def createAggregateDisclosureReports(system: ActorSystem): ActorRef = {
12-
system.actorOf(AggregateAndDisclosureReports.props(), "hmda-aggregate-disclosure")
12+
system.actorOf(AggregateAndDisclosureReports.props().withDispatcher("validation-dispatcher"), "hmda-aggregate-disclosure")
1313
}
1414
}
1515

query/src/main/scala/hmda/query/projections/filing/HmdaFilingDBProjection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object HmdaFilingDBProjection extends FilingComponent {
2424
def props(period: String): Props = Props(new HmdaFilingDBProjection(period))
2525

2626
def createHmdaFilingDBProjection(system: ActorSystem, period: String): ActorRef = {
27-
system.actorOf(HmdaFilingDBProjection.props(period))
27+
system.actorOf(HmdaFilingDBProjection.props(period).withDispatcher("query-dispatcher"))
2828
}
2929

3030
}

query/src/main/scala/hmda/query/projections/institutions/InstitutionDBProjection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object InstitutionDBProjection extends InstitutionComponent {
2222
def props(): Props = Props(new InstitutionDBProjection())
2323

2424
def createInstitutionDBProjection(system: ActorSystem): ActorRef = {
25-
system.actorOf(InstitutionDBProjection.props())
25+
system.actorOf(InstitutionDBProjection.props().withDispatcher("query-dispatcher"))
2626
}
2727

2828
}

query/src/main/scala/hmda/query/view/filing/HmdaFilingView.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object HmdaFilingView {
1919
def props(period: String): Props = Props(new HmdaFilingView(period))
2020

2121
def createHmdaFilingView(system: ActorSystem, period: String): ActorRef = {
22-
system.actorOf(HmdaFilingView.props(period), s"$name-$period")
22+
system.actorOf(HmdaFilingView.props(period).withDispatcher("query-dispatcher"), s"$name-$period")
2323
}
2424

2525
case class FilingViewState(size: Long = 0, seqNr: Long = 0L) {

query/src/main/scala/hmda/query/view/institutions/InstitutionView.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object InstitutionView {
2525
def props(): Props = Props(new InstitutionView)
2626

2727
def createInstitutionView(system: ActorSystem): ActorRef = {
28-
system.actorOf(InstitutionView.props(), "institutions-view")
28+
system.actorOf(InstitutionView.props().withDispatcher("query-dispatcher"), "institutions-view")
2929
}
3030

3131
case class InstitutionViewState(institutions: Set[Institution] = Set.empty[Institution], seqNr: Long = 0L) {

validation/src/main/scala/hmda/validation/ValidationStats.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object ValidationStats {
5555
def props(): Props = Props(new ValidationStats)
5656

5757
def createValidationStats(system: ActorSystem): ActorRef = {
58-
system.actorOf(ValidationStats.props(), "validation-stats")
58+
system.actorOf(ValidationStats.props().withDispatcher("validation-dispatcher"), "validation-stats")
5959
}
6060

6161
case class ValidationStatsState(stats: Seq[SubmissionStats] = Nil) {

0 commit comments

Comments
 (0)