Skip to content

Commit

Permalink
implementation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko committed Jan 16, 2025
1 parent bd0dbc5 commit 016f5c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions akka-javasdk/src/main/scala/akka/javasdk/impl/SdkRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private final class Sdk(

// service setup + integration test config
val combinedDisabledComponents =
serviceSetup.map(_.disabledComponents().asScala.toSet).getOrElse(Set.empty) ++ disabledComponents
(serviceSetup.map(_.disabledComponents().asScala.toSet).getOrElse(Set.empty) ++ disabledComponents).map(_.getName)

val descriptors =
(eventSourcedEntityDescriptors ++
Expand Down Expand Up @@ -664,9 +664,9 @@ private final class Sdk(
healthCheck = () => SdkRunner.FutureDone)
}

private def isDisabled(disabledComponents: Set[Class[_]])(componentDescriptor: spi.ComponentDescriptor): Boolean = {
private def isDisabled(disabledComponents: Set[String])(componentDescriptor: spi.ComponentDescriptor): Boolean = {
val className = componentDescriptor.implementationName
if (disabledComponents.map(_.getName).contains(className)) {
if (disabledComponents.contains(className)) {
logger.info("Ignoring component [{}] as it is disabled", className)
true
} else
Expand Down

0 comments on commit 016f5c4

Please sign in to comment.