Skip to content

Commit 1f07b2c

Browse files
author
Nick Grippin
committed
checkpoint
1 parent b611285 commit 1f07b2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

panel/src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ akka {
66
hmda {
77
adminHost = "0.0.0.0"
88
adminHost = ${?HMDA_HTTP_ADMIN_HOST}
9-
adminPort = 8081
9+
adminPort = 80
1010
adminPort = ${?HMDA_HTTP_ADMIN_PORT}
1111
}
1212

panel/src/main/scala/hmda/panel/PanelCsvLoader.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@ object PanelCsvLoader extends WriteInstitutionProtocol {
7070
})
7171
}
7272

73+
private def singleConnectionFlow: Flow[HttpRequest, HttpResponse, NotUsed] =
74+
Flow[HttpRequest]
75+
.map(r => {
76+
Http().singleRequest(r).
77+
})
78+
7379
private def stringToHttpFlow: Flow[String, HttpRequest, NotUsed] =
7480
Flow[String]
7581
.map(x => {
7682
val payload = ByteString(InstitutionParser(x).toJson.toString)
7783
HttpRequest(
7884
HttpMethods.POST,
79-
uri = "/institutions",
8085
entity = HttpEntity(MediaTypes.`application/json`, payload)
8186
)
8287
})

0 commit comments

Comments
 (0)