SwissBorg / pekko-persistence-postgres

PostgreSQL plugin for Pekko Persistence
Apache License 2.0
6 stars 3 forks source link

Solve deprecation warnings #28

Closed tiagomota closed 6 months ago

tiagomota commented 7 months ago

There are two deprecation warnings to be solved:

[warn] ../pekko-persistence-postgres/core/src/main/scala/org/apache/pekko/persistence/postgres/journal/dao/BaseByteArrayJournalDao.scala:58:75: method dropNew in object OverflowStrategy is deprecated (since Akka 2.6.11): Use Source.queue instead
[warn]     .queue[(Promise[Unit], Seq[JournalRow])](bufferSize, OverflowStrategy.dropNew)
[warn]                                                                           ^

[warn] ../pekko-persistence-postgres/core/src/main/scala/org/apache/pekko/persistence/postgres/query/scaladsl/PostgresReadJournal.scala:111:8: method statefulMapConcat in trait FlowOps is deprecated (since 1.0.2): Use `statefulMap` with `mapConcat` instead.
[warn]       .statefulMapConcat[String] { () =>
[warn]        ^
[warn] two warnings found
He-Pin commented 7 months ago

Let me do this:)