Skip to content

Commit

Permalink
Commented out redundant service watching
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Dec 3, 2018
1 parent 5ad2678 commit 02f998e
Showing 1 changed file with 6 additions and 5 deletions.
@@ -1,7 +1,7 @@
package blended.mgmt.rest.internal package blended.mgmt.rest.internal


import blended.akka.ActorSystemWatching import blended.akka.ActorSystemWatching
import blended.akka.http.{ HttpContext, SimpleHttpContext } import blended.akka.http.{HttpContext, SimpleHttpContext}
import blended.persistence.PersistenceService import blended.persistence.PersistenceService
import blended.security.BlendedPermissionManager import blended.security.BlendedPermissionManager
import blended.updater.remote.RemoteUpdater import blended.updater.remote.RemoteUpdater
Expand Down Expand Up @@ -43,11 +43,12 @@ class MgmtRestActivator extends DominoActivator with ActorSystemWatching {
collectorService.removeArtifactRepo(service) collectorService.removeArtifactRepo(service)
collectorService.addArtifactRepo(service) collectorService.addArtifactRepo(service)
} }


// TODO: remove; it looks like to be redundant to the above watch code
// initially get all services of this type // initially get all services of this type
val repos = services[WritableArtifactRepo] // val repos = services[WritableArtifactRepo]
log.debug(s"Initially starting with repos: ${repos}") // log.debug(s"Initially starting with repos: ${repos}")
repos.foreach { s => collectorService.addArtifactRepo(s) } // repos.foreach { s => collectorService.addArtifactRepo(s) }


whenActorSystemAvailable { cfg => whenActorSystemAvailable { cfg =>
log.debug("Setting optional event stream to collector service") log.debug("Setting optional event stream to collector service")
Expand Down

0 comments on commit 02f998e

Please sign in to comment.