Skip to content

Commit f56a54d

Browse files
authored
Update InstanceRegistry.scala
1 parent fab695a commit f56a54d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ object InstanceRegistry extends JsonSupport with AppLogging
8080
}
8181

8282
def sendMatchingResult(isElasticSearchReachable : Boolean, configuration: Configuration) : Try[Unit] = {
83-
val id=configuration.elasticsearchInstance.id.get
8483

8584
if(!configuration.usingInstanceRegistry) {
8685
Failure(new RuntimeException("Cannot post matching result to Instance Registry, no Instance Registry available."))
@@ -149,4 +148,4 @@ object InstanceRegistry extends JsonSupport with AppLogging
149148

150149
private def createInstance(id: Option[Long], controlPort : Int, name : String) : Instance =
151150
Instance(id, InetAddress.getLocalHost.getHostAddress, controlPort, name, ComponentType.WebApi)
152-
}
151+
}

0 commit comments

Comments
 (0)