This is an automated email from the ASF dual-hosted git repository. fanningpj pushed a commit to branch config-bug in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc-quickstart-scala.g8.git
commit 5712a4079d1886b44f06c3355a116767f248ebcd Author: PJ Fanning <[email protected]> AuthorDate: Tue Jan 23 10:37:54 2024 +0100 fix bug in http2 config names --- src/main/g8/src/main/scala/com/example/helloworld/GreeterServer.scala | 2 +- src/main/g8/src/test/scala/com/example/helloworld/GreeterSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/g8/src/main/scala/com/example/helloworld/GreeterServer.scala b/src/main/g8/src/main/scala/com/example/helloworld/GreeterServer.scala index e49a5ec..22f6b91 100644 --- a/src/main/g8/src/main/scala/com/example/helloworld/GreeterServer.scala +++ b/src/main/g8/src/main/scala/com/example/helloworld/GreeterServer.scala @@ -37,7 +37,7 @@ object GreeterServer { def main(args: Array[String]): Unit = { // important to enable HTTP/2 in ActorSystem's config - val conf = ConfigFactory.parseString("pekko.http.server.enable-http2 = on") + val conf = ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on") .withFallback(ConfigFactory.defaultApplication()) val system = ActorSystem[Nothing](Behaviors.empty[Nothing], "GreeterServer", conf) new GreeterServer(system).run() diff --git a/src/main/g8/src/test/scala/com/example/helloworld/GreeterSpec.scala b/src/main/g8/src/test/scala/com/example/helloworld/GreeterSpec.scala index df72446..56e169e 100644 --- a/src/main/g8/src/test/scala/com/example/helloworld/GreeterSpec.scala +++ b/src/main/g8/src/test/scala/com/example/helloworld/GreeterSpec.scala @@ -25,7 +25,7 @@ class GreeterSpec implicit val patience: PatienceConfig = PatienceConfig(scaled(5.seconds), scaled(100.millis)) // important to enable HTTP/2 in server ActorSystem's config - val conf = ConfigFactory.parseString("pekko.http.server.enable-http2 = on") + val conf = ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on") .withFallback(ConfigFactory.defaultApplication()) val testKit = ActorTestKit(conf) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
