From 88f7052a19ed18aab51bd510407f387099fa05b9 Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Mon, 5 Feb 2024 14:51:02 +1100 Subject: [PATCH] Replace getFirst with get --- .../scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala index 8d9559836..d123043cc 100644 --- a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala +++ b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala @@ -663,7 +663,7 @@ object HttpEntity { private var bytesLeft = Long.MaxValue override def preStart(): Unit = { - _attributes.getFirst[SizeLimit] match { + _attributes.get[SizeLimit] match { case Some(limit: SizeLimit) if limit.isDisabled => // "no limit" case Some(SizeLimit(bytes, cl @ Some(contentLength))) =>