chore: make toAttributes a lazy val (#2157)

This commit is contained in:
He-Pin(kerr) 2025-09-06 22:48:52 +08:00 committed by GitHub
parent 9b6797f3d8
commit 47e7e23f2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 =