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/01/23 13:46:25 UTC

(incubator-pekko-grpc-quickstart-scala.g8) branch main updated: fix bug in http2 config names (#7)

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/incubator-pekko-grpc-quickstart-scala.g8.git


The following commit(s) were added to refs/heads/main by this push:
     new 13794af  fix bug in http2 config names (#7)
13794af is described below

commit 13794afff3d090b93f8df4af6b54520ba933104c
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jan 23 14:46:20 2024 +0100

    fix bug in http2 config names (#7)
---
 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: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org