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/pekko-persistence-dynamodb.git


The following commit(s) were added to refs/heads/main by this push:
     new 87083f0  avoid deprecated Scala code (#235)
87083f0 is described below

commit 87083f0b04793b61d571149194a744a66f4eaa11
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Oct 2 08:14:06 2025 +0100

    avoid deprecated Scala code (#235)
---
 .../scala/org/apache/pekko/persistence/dynamodb/package.scala     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/scala/org/apache/pekko/persistence/dynamodb/package.scala 
b/src/main/scala/org/apache/pekko/persistence/dynamodb/package.scala
index e1f4bc6..0d52466 100644
--- a/src/main/scala/org/apache/pekko/persistence/dynamodb/package.scala
+++ b/src/main/scala/org/apache/pekko/persistence/dynamodb/package.scala
@@ -23,7 +23,7 @@ import 
com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsyncClient
 import com.amazonaws.services.dynamodbv2.model.{ AttributeValue, 
AttributeValueUpdate }
 
 import java.util.{ Map => JMap }
-import scala.collection.generic.CanBuildFrom
+import scala.collection.BuildFrom
 import scala.concurrent.{ ExecutionContext, Future, Promise }
 import scala.util.{ Failure, Success, Try }
 
@@ -54,11 +54,11 @@ package object dynamodb {
     p.future
   }
 
-  def trySequence[A, M[X] <: TraversableOnce[X]](in: M[Future[A]])(
+  def trySequence[A, M[X] <: IterableOnce[X]](in: M[Future[A]])(
       implicit
-      cbf: CanBuildFrom[M[Future[A]], Try[A], M[Try[A]]],
+      cbf: BuildFrom[M[Future[A]], Try[A], M[Try[A]]],
       executor: ExecutionContext): Future[M[Try[A]]] =
-    in.foldLeft(Future.successful(cbf(in))) { (fr, a) =>
+    in.iterator.foldLeft(Future.successful(cbf.newBuilder(in))) { (fr, a) =>
       val fb = lift(a)
       for (r <- fr; b <- fb) yield r += b
     }.map(_.result())


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

Reply via email to