Skip to content

Commit a186175

Browse files
author
Johannes Duesing
committed
Fixed variable name being uppercase (codestyle)
1 parent 32b8a6f commit a186175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/de/upb/cs/swt/delphi/instancemanagement/InstanceRegistry.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ object InstanceRegistry extends InstanceJsonSupport with AppLogging {
190190
} else {
191191
val idToPost = configuration.elasticsearchInstance.id.getOrElse(-1L)
192192

193-
val MatchingData = JsObject("MatchingSuccessful" -> JsBoolean(isElasticSearchReachable),
193+
val matchingData = JsObject("MatchingSuccessful" -> JsBoolean(isElasticSearchReachable),
194194
"SenderId" -> JsNumber(configuration.assignedID.getOrElse(-1L)))
195195

196196
val request = HttpRequest(
@@ -199,7 +199,7 @@ object InstanceRegistry extends InstanceJsonSupport with AppLogging {
199199

200200
Await.result(Http(system).singleRequest(request
201201
.withHeaders(RawHeader("Authorization",s"Bearer ${AuthProvider.generateJwt()}"))
202-
.withEntity(ContentTypes.`application/json`, ByteString(MatchingData.toJson.toString))) map { response =>
202+
.withEntity(ContentTypes.`application/json`, ByteString(matchingData.toJson.toString))) map { response =>
203203
if (response.status == StatusCodes.OK) {
204204
log.info(s"Successfully posted matching result to Instance Registry.")
205205
Success()

0 commit comments

Comments
 (0)