Skip to content

Commit 899f83b

Browse files
authored
Refactor root supervisor condition in CellInfo (typed actor)
1 parent e22ee7a commit 899f83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/apache/pekko/monitor/instrumentation/CellInfo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object CellInfo {
3737
val pathString = ref.path.elements.mkString("/")
3838
val isTyped = cell.props.actorClass().getName == TypedActorAdapterClassName
3939
val isRootSupervisor = if (isTyped)
40-
pathString != "user"
40+
pathString.isEmpty || pathString == "system"
4141
else
4242
pathString.isEmpty || pathString == "user" || pathString == "system"
4343
val isRouter = hasRouterProps(cell)

0 commit comments

Comments
 (0)