You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2024/05/14 15:35:08 UTC
(pekko-management) branch main updated: remove old recoverWith workaround (#235)
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-management.git
The following commit(s) were added to refs/heads/main by this push:
new efc33fd8 remove old recoverWith workaround (#235)
efc33fd8 is described below
commit efc33fd839c9a3dfd05bae597e5d5e9d874ac5c7
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue May 14 16:35:03 2024 +0100
remove old recoverWith workaround (#235)
---
.../org/apache/pekko/management/internal/HealthChecksImpl.scala | 6 ------
1 file changed, 6 deletions(-)
diff --git a/management/src/main/scala/org/apache/pekko/management/internal/HealthChecksImpl.scala b/management/src/main/scala/org/apache/pekko/management/internal/HealthChecksImpl.scala
index 21430245..43b9480c 100644
--- a/management/src/main/scala/org/apache/pekko/management/internal/HealthChecksImpl.scala
+++ b/management/src/main/scala/org/apache/pekko/management/internal/HealthChecksImpl.scala
@@ -97,9 +97,6 @@ final private[pekko] class HealthChecksImpl(system: ExtendedActorSystem, setting
.recoverWith {
case _: NoSuchMethodException =>
system.dynamicAccess.createInstanceFor[HealthCheck](fqcn, Nil)
- // Can be removed when 2.13.0-RC1 is out (https://github.com/scala/bug/issues/7390)
- case o =>
- Failure(o)
}
}
@@ -122,9 +119,6 @@ final private[pekko] class HealthChecksImpl(system: ExtendedActorSystem, setting
tryLoadScalaHealthCheck(namedHealthCheck.fullyQualifiedClassName).recoverWith {
case _: ClassCastException =>
tryLoadJavaHealthCheck(namedHealthCheck.fullyQualifiedClassName)
- // Can be removed when 2.13.0-RC1 is out (https://github.com/scala/bug/issues/7390)
- case o =>
- Failure(o)
})
.map {
case Success(c) => c
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org