Skip to content

Commit 2c32abb

Browse files
committed
scala fmt
1 parent 999317a commit 2c32abb

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

core/src/main/scala/app/softnetwork/notification/launch/NotificationGuardian.scala

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ package app.softnetwork.notification.launch
33
import akka.actor.typed.ActorSystem
44
import app.softnetwork.notification.api.NotificationServer
55
import app.softnetwork.notification.model.Notification
6-
import app.softnetwork.notification.persistence.query.{NotificationCommandProcessorStream, Scheduler2NotificationProcessorStream}
6+
import app.softnetwork.notification.persistence.query.{
7+
NotificationCommandProcessorStream,
8+
Scheduler2NotificationProcessorStream
9+
}
710
import app.softnetwork.notification.persistence.typed.NotificationBehavior
811
import app.softnetwork.persistence.launch.{PersistenceGuardian, PersistentEntity}
912
import app.softnetwork.persistence.query.{EventProcessorStream, SchemaProvider}
1013
import com.typesafe.scalalogging.StrictLogging
1114

1215
import scala.language.implicitConversions
1316

14-
trait NotificationGuardian[T <: Notification] extends PersistenceGuardian with StrictLogging { _: SchemaProvider =>
17+
trait NotificationGuardian[T <: Notification] extends PersistenceGuardian with StrictLogging {
18+
_: SchemaProvider =>
1519

1620
import app.softnetwork.persistence.launch.PersistenceGuardian._
1721

@@ -22,7 +26,8 @@ trait NotificationGuardian[T <: Notification] extends PersistenceGuardian with S
2226

2327
/** initialize all entities
2428
*/
25-
override def entities: ActorSystem[_] => Seq[PersistentEntity[_, _, _, _]] = sys => notificationEntities(sys)
29+
override def entities: ActorSystem[_] => Seq[PersistentEntity[_, _, _, _]] = sys =>
30+
notificationEntities(sys)
2631

2732
def scheduler2NotificationProcessorStream
2833
: ActorSystem[_] => Option[Scheduler2NotificationProcessorStream] = _ => None
@@ -32,7 +37,7 @@ trait NotificationGuardian[T <: Notification] extends PersistenceGuardian with S
3237

3338
def notificationEventProcessorStreams: ActorSystem[_] => Seq[EventProcessorStream[_]] = sys =>
3439
Seq(scheduler2NotificationProcessorStream(sys)).flatten ++
35-
Seq(notificationCommandProcessorStream(sys)).flatten
40+
Seq(notificationCommandProcessorStream(sys)).flatten
3641

3742
/** initialize all event processor streams
3843
*/

testkit/src/main/scala/app/softnetwork/notification/scalatest/NotificationTestKit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ trait NotificationTestKit[T <: Notification]
8181

8282
override def eventProcessorStreams: ActorSystem[_] => Seq[EventProcessorStream[_]] = sys =>
8383
schedulerEventProcessorStreams(sys) ++
84-
notificationEventProcessorStreams(sys)
84+
notificationEventProcessorStreams(sys)
8585
}

0 commit comments

Comments
 (0)