This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new f0236b309 refactor: replace deprecated ActorMaterializer with 
Materializer (#1108)
f0236b309 is described below

commit f0236b3099a575749a396d376b8e5f1419a9cbaa
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Mon Jun 29 06:14:09 2026 +0800

    refactor: replace deprecated ActorMaterializer with Materializer (#1108)
    
    Motivation:
    ActorMaterializer and ActorMaterializerSettings have been deprecated
    since Akka 2.6.0 in favor of Materializer.apply(system).
    
    Modification:
    Replace 
ActorMaterializer(ActorMaterializerSettings(system).withInputBuffer(128, 128))
    with Materializer(system) in TestServer.scala.
    
    Result:
    Removes usage of deprecated ActorMaterializer API.
    
    Tests:
    - sbt "http-core / Test / compile" - success
    
    References:
    None - deprecated API cleanup
---
 .../src/test/scala/org/apache/pekko/http/scaladsl/TestServer.scala   | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/http-core/src/test/scala/org/apache/pekko/http/scaladsl/TestServer.scala 
b/http-core/src/test/scala/org/apache/pekko/http/scaladsl/TestServer.scala
index 59dcef2cc..c7c5e8d0c 100644
--- a/http-core/src/test/scala/org/apache/pekko/http/scaladsl/TestServer.scala
+++ b/http-core/src/test/scala/org/apache/pekko/http/scaladsl/TestServer.scala
@@ -41,10 +41,7 @@ object TestServer extends App {
     """)
   implicit val system: ActorSystem = ActorSystem("ServerTest", testConf)
 
-  val settings = ActorMaterializerSettings(system)
-    //    .withSyncProcessingLimit(Int.MaxValue)
-    .withInputBuffer(128, 128)
-  implicit val fm: Materializer = ActorMaterializer(settings)
+  implicit val fm: Materializer = Materializer(system)
   try {
     val binding = Http().newServerAt("localhost", 9001).bindSync {
       case req @ HttpRequest(GET, Uri.Path("/"), _, _, _) =>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to