You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by gi...@apache.org on 2025/01/19 00:25:57 UTC

(pekko-persistence-r2dbc) 02/03: Reformat with scalafmt 3.8.5

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

github-bot pushed a commit to branch update/scalafmt-core-3.8.5
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-r2dbc.git

commit 356e00197c017085fea10db78c825631f24bb1c2
Author: scala-steward-asf[bot] <14...@users.noreply.github.com>
AuthorDate: Sun Jan 19 00:25:48 2025 +0000

    Reformat with scalafmt 3.8.5
    
    Executed command: scalafmt --non-interactive
---
 .../pekko/persistence/r2dbc/internal/R2dbcExecutor.scala     |  9 ++++++---
 .../apache/pekko/persistence/r2dbc/journal/JournalDao.scala  |  3 ++-
 .../pekko/persistence/r2dbc/query/scaladsl/QueryDao.scala    |  3 ++-
 .../pekko/persistence/r2dbc/snapshot/SnapshotDao.scala       |  3 ++-
 .../persistence/r2dbc/state/scaladsl/DurableStateDao.scala   |  3 ++-
 .../projection/r2dbc/internal/R2dbcProjectionImpl.scala      | 12 ++++++++----
 6 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/internal/R2dbcExecutor.scala b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/internal/R2dbcExecutor.scala
index 894b8fa..138584b 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/internal/R2dbcExecutor.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/internal/R2dbcExecutor.scala
@@ -81,13 +81,15 @@ import reactor.core.publisher.Mono
       }
     }
 
-  def selectOneInTx[A](statement: Statement, mapRow: Row => A)(implicit
+  def selectOneInTx[A](statement: Statement, mapRow: Row => A)(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_]): Future[Option[A]] = {
     selectInTx(statement, mapRow).map(_.headOption)
   }
 
-  def selectInTx[A](statement: Statement, mapRow: Row => A)(implicit
+  def selectInTx[A](statement: Statement, mapRow: Row => A)(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_]): Future[immutable.IndexedSeq[A]] = {
     statement.execute().asFuture().flatMap { result =>
@@ -107,7 +109,8 @@ import reactor.core.publisher.Mono
  * INTERNAL API:
  */
 @InternalStableApi
-class R2dbcExecutor(val connectionFactory: ConnectionFactory, log: Logger, logDbCallsExceeding: FiniteDuration)(implicit
+class R2dbcExecutor(val connectionFactory: ConnectionFactory, log: Logger, logDbCallsExceeding: FiniteDuration)(
+    implicit
     ec: ExecutionContext,
     system: ActorSystem[_]) {
   import R2dbcExecutor._
diff --git a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/journal/JournalDao.scala b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/journal/JournalDao.scala
index 4434cfd..3c881b6 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/journal/JournalDao.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/journal/JournalDao.scala
@@ -94,7 +94,8 @@ private[r2dbc] object JournalDao {
  * Class for doing db interaction outside of an actor to avoid mistakes in future callbacks
  */
 @InternalApi
-private[r2dbc] class JournalDao(journalSettings: R2dbcSettings, connectionFactory: ConnectionFactory)(implicit
+private[r2dbc] class JournalDao(journalSettings: R2dbcSettings, connectionFactory: ConnectionFactory)(
+    implicit
     ec: ExecutionContext,
     system: ActorSystem[_]) {
 
diff --git a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/query/scaladsl/QueryDao.scala b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/query/scaladsl/QueryDao.scala
index 46e59b0..eebf8bc 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/query/scaladsl/QueryDao.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/query/scaladsl/QueryDao.scala
@@ -61,7 +61,8 @@ object QueryDao {
  * INTERNAL API
  */
 @InternalApi
-private[r2dbc] class QueryDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(implicit
+private[r2dbc] class QueryDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(
+    implicit
     ec: ExecutionContext,
     system: ActorSystem[_])
     extends BySliceQuery.Dao[SerializedJournalRow] {
diff --git a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/snapshot/SnapshotDao.scala b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/snapshot/SnapshotDao.scala
index 043ff6e..01f3395 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/snapshot/SnapshotDao.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/snapshot/SnapshotDao.scala
@@ -89,7 +89,8 @@ private[r2dbc] object SnapshotDao {
  * Class for doing db interaction outside of an actor to avoid mistakes in future callbacks
  */
 @InternalApi
-private[r2dbc] class SnapshotDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(implicit
+private[r2dbc] class SnapshotDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(
+    implicit
     ec: ExecutionContext,
     system: ActorSystem[_]) {
   import SnapshotDao._
diff --git a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/state/scaladsl/DurableStateDao.scala b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/state/scaladsl/DurableStateDao.scala
index 80ef95b..7c9d2c1 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/r2dbc/state/scaladsl/DurableStateDao.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/r2dbc/state/scaladsl/DurableStateDao.scala
@@ -84,7 +84,8 @@ import org.slf4j.LoggerFactory
  * Class for encapsulating db interaction.
  */
 @InternalApi
-private[r2dbc] class DurableStateDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(implicit
+private[r2dbc] class DurableStateDao(settings: R2dbcSettings, connectionFactory: ConnectionFactory)(
+    implicit
     ec: ExecutionContext,
     system: ActorSystem[_])
     extends BySliceQuery.Dao[DurableStateDao.SerializedStateRow] {
diff --git a/projection/src/main/scala/org/apache/pekko/projection/r2dbc/internal/R2dbcProjectionImpl.scala b/projection/src/main/scala/org/apache/pekko/projection/r2dbc/internal/R2dbcProjectionImpl.scala
index 610b442..5452a92 100644
--- a/projection/src/main/scala/org/apache/pekko/projection/r2dbc/internal/R2dbcProjectionImpl.scala
+++ b/projection/src/main/scala/org/apache/pekko/projection/r2dbc/internal/R2dbcProjectionImpl.scala
@@ -195,7 +195,8 @@ private[projection] object R2dbcProjectionImpl {
       sourceProvider: SourceProvider[Offset, Envelope],
       handlerFactory: () => R2dbcHandler[immutable.Seq[Envelope]],
       offsetStore: R2dbcOffsetStore,
-      r2dbcExecutor: R2dbcExecutor)(implicit
+      r2dbcExecutor: R2dbcExecutor)(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_]): () => Handler[immutable.Seq[Envelope]] = { () =>
     new AdaptedR2dbcHandler(handlerFactory()) {
@@ -292,7 +293,8 @@ private[projection] object R2dbcProjectionImpl {
   private[projection] def adaptedHandlerForGroupedAsync[Offset, Envelope](
       sourceProvider: SourceProvider[Offset, Envelope],
       handlerFactory: () => Handler[immutable.Seq[Envelope]],
-      offsetStore: R2dbcOffsetStore)(implicit
+      offsetStore: R2dbcOffsetStore)(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_]): () => Handler[immutable.Seq[Envelope]] = { () =>
     new AdaptedHandler(handlerFactory()) {
@@ -325,7 +327,8 @@ private[projection] object R2dbcProjectionImpl {
   private[projection] def adaptedHandlerForFlow[Offset, Envelope](
       sourceProvider: SourceProvider[Offset, Envelope],
       handler: FlowWithContext[Envelope, ProjectionContext, Done, ProjectionContext, _],
-      offsetStore: R2dbcOffsetStore)(implicit
+      offsetStore: R2dbcOffsetStore)(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_]): FlowWithContext[Envelope, ProjectionContext, Done, ProjectionContext, _] = {
 
@@ -353,7 +356,8 @@ private[projection] object R2dbcProjectionImpl {
       .via(handler)
   }
 
-  abstract class AdaptedR2dbcHandler[E](val delegate: R2dbcHandler[E])(implicit
+  abstract class AdaptedR2dbcHandler[E](val delegate: R2dbcHandler[E])(
+      implicit
       ec: ExecutionContext,
       system: ActorSystem[_])
       extends Handler[E] {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org