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

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 47e7e23f2d chore: make toAttributes a lazy val (#2157)
47e7e23f2d is described below

commit 47e7e23f2ddf3304b116a4c85617e5614d040687
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sat Sep 6 22:48:52 2025 +0800

    chore: make toAttributes a lazy val (#2157)
---
 stream/src/main/scala/org/apache/pekko/stream/ActorMaterializer.scala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/stream/src/main/scala/org/apache/pekko/stream/ActorMaterializer.scala 
b/stream/src/main/scala/org/apache/pekko/stream/ActorMaterializer.scala
index 618adc9cf7..cba9e5338c 100644
--- a/stream/src/main/scala/org/apache/pekko/stream/ActorMaterializer.scala
+++ b/stream/src/main/scala/org/apache/pekko/stream/ActorMaterializer.scala
@@ -352,7 +352,7 @@ final class ActorMaterializerSettings @InternalApi private (
    * INTERNAL API
    */
   @InternalApi
-  private[pekko] def toAttributes: Attributes =
+  private[pekko] lazy val toAttributes: Attributes =
     Attributes(
       // these are the core stream/materializer settings, ad hoc handling of 
defaults for the stage specific ones
       // for stream refs and io live with the respective stages
@@ -368,7 +368,6 @@ final class ActorMaterializerSettings @InternalApi private (
       ActorAttributes.FuzzingMode(fuzzingMode) ::
       ActorAttributes.MaxFixedBufferSize(maxFixedBufferSize) ::
       ActorAttributes.SyncProcessingLimit(syncProcessingLimit) ::
-
       Nil)
 
   override def toString: String =


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

Reply via email to