Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiluTian committed Sep 6, 2024
1 parent 292dc58 commit b517d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Akka/src/main/scala/core/WorkerImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class Worker {
Prepare()

case LogControllerSpec.LoggerAggregateServiceKey.Listing(logger) =>
ctx.log.debug(f"Log controller registered!")
if (logger.size == 1) {
ctx.log.debug(f"Log controller registered!")
loggerRef = logger.head
}
Prepare()
Expand All @@ -88,7 +88,7 @@ class Worker {
Behaviors.receive[WorkerEvent] { (ctx, message) =>
message match {
case Prepare() =>
worker(builder)
Behaviors.same

case ReceiveAgentMap(wid, nameIds, reply) =>
peerWorkers.computeIfAbsent(wid, x => {
Expand Down

0 comments on commit b517d56

Please sign in to comment.