This is an automated email from the ASF dual-hosted git repository. He-Pin pushed a commit to branch perf/1668-actor-receive-timeout in repository https://gitbox.apache.org/repos/asf/pekko.git
commit 258a9d7353417442c7da36535c611d23e29175c1 Author: 虎鸣 <[email protected]> AuthorDate: Mon Jul 20 13:08:33 2026 +0800 fix: update references to ReceiveTimeoutCompat after method relocation Motivation: The isNotInfluenceReceiveTimeout method was moved from ReceiveTimeout to ReceiveTimeoutCompat in the version-specific files, but two call sites still referenced the old location, causing compilation failures across all CI jobs. Modification: Update TimerSchedulerImpl (actor-typed) and ReceiveTimeoutTypePollutionBenchmark (bench-jmh) to reference ReceiveTimeoutCompat.isNotInfluenceReceiveTimeout. Result: All modules compile successfully on both Scala 2.13 and Scala 3. Tests: - sbt "actor-typed / Compile / compileIncremental" (Scala 2.13) - success - sbt "++3.3.8; actor-typed / Compile / compileIncremental" - success References: Refs #3332 --- .../org/apache/pekko/actor/typed/internal/TimerSchedulerImpl.scala | 2 +- .../org/apache/pekko/actor/ReceiveTimeoutTypePollutionBenchmark.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/TimerSchedulerImpl.scala b/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/TimerSchedulerImpl.scala index 850ceb1a18..a8e57f17cb 100644 --- a/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/TimerSchedulerImpl.scala +++ b/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/TimerSchedulerImpl.scala @@ -117,7 +117,7 @@ import org.slf4j.Logger val nextGen = timerGen.next() val timerMsg = - if (pekko.actor.dungeon.ReceiveTimeout.isNotInfluenceReceiveTimeout(msg)) + if (pekko.actor.dungeon.ReceiveTimeoutCompat.isNotInfluenceReceiveTimeout(msg)) new TimerMsg(key, nextGen, this) with NotInfluenceReceiveTimeout else new TimerMsg(key, nextGen, this) diff --git a/bench-jmh/src/main/scala/org/apache/pekko/actor/ReceiveTimeoutTypePollutionBenchmark.scala b/bench-jmh/src/main/scala/org/apache/pekko/actor/ReceiveTimeoutTypePollutionBenchmark.scala index d6f09c5345..fd3a09cf90 100644 --- a/bench-jmh/src/main/scala/org/apache/pekko/actor/ReceiveTimeoutTypePollutionBenchmark.scala +++ b/bench-jmh/src/main/scala/org/apache/pekko/actor/ReceiveTimeoutTypePollutionBenchmark.scala @@ -51,7 +51,7 @@ class ReceiveTimeoutTypePollutionBenchmark { @CompilerControl(CompilerControl.Mode.DONT_INLINE) def isNotInfluenceReceiveTimeoutGuarded(message: AnyRef): Boolean = - dungeon.ReceiveTimeout.isNotInfluenceReceiveTimeout(message) + dungeon.ReceiveTimeoutCompat.isNotInfluenceReceiveTimeout(message) @Benchmark def typePolluted(input: ReceiveTimeoutTypePollutionInput): Int = { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
