He-Pin commented on code in PR #1877: URL: https://github.com/apache/pekko/pull/1877#discussion_r2124339211
########## cluster/src/main/scala/org/apache/pekko/cluster/ConfigUtil.scala: ########## @@ -19,15 +19,21 @@ package org.apache.pekko.cluster import com.typesafe.config.{ Config, ConfigValue, ConfigValueFactory, ConfigValueType } -import scala.annotation.nowarn +import org.apache.pekko +import pekko.annotation.InternalApi +@InternalApi private[cluster] object ConfigUtil { private val PekkoPrefix = "org.apache.pekko" private val AkkaPrefix = "akka" - @nowarn("msg=deprecated") def addAkkaConfig(cfg: Config, akkaVersion: String): Config = { + val newConfig = changePekkoToAkkaConfig(cfg) + newConfig.withValue("akka.version", ConfigValueFactory.fromAnyRef(akkaVersion)) + } + + def changePekkoToAkkaConfig(cfg: Config): Config = { Review Comment: adapte? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org