From 8a1995e6df04869a91209bae1827794567b31cb9 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 14 Jan 2025 17:09:44 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.4 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 81803b40..e9a82285 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.3 +version = 3.8.4 maxColumn = 120 From 30cfcad34fb3aa00c15989eca37ab32b9f418038 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 14 Jan 2025 17:10:10 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.4 Executed command: scalafmt --non-interactive --- .../akkaeffect/eventsourcing/Engine.scala | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala b/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala index 539b6a87..2c8c66c6 100644 --- a/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala +++ b/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala @@ -320,7 +320,7 @@ object Engine { /** Execute `load` with respect to: * 1. failure on `load` or `validate` will be propagated to user 2. stopped Engine will not persist any events * or change its state 3. `load` stages executed unordered and in parallel 4. `validate` stages executed - * strictly sequentially 5. `persist` happened strictly sequentially 6. `effect`s executed strictly + * strictly sequentially 5. `persist` happened strictly sequentially 6. `effect` s executed strictly * sequentially * * Please check [[EngineCatsEffectTest]] for more restrictions of the implementation @@ -466,12 +466,10 @@ object Engine { Ref[F] .of(initial) .map { seqNrRef => events => - { - val size = events.size - seqNrRef.modify { seqNr => - val seqNr1 = seqNr + size - (seqNr1, seqNr1) - } + val size = events.size + seqNrRef.modify { seqNr => + val seqNr1 = seqNr + size + (seqNr1, seqNr1) } } From 38b51bfa11fb702722ee6fd7f17b19b886daa15b Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 14 Jan 2025 17:10:11 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.4' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..e2f4c055 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.4 +30cfcad34fb3aa00c15989eca37ab32b9f418038