Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.2
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward-asf[bot] authored and pjfanning committed Jun 16, 2024
1 parent f4cdf3e commit 8de5f86
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ class JdbcAsyncWriteJournal(config: Config) extends AsyncWriteJournal {
val fqcn = journalConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
(classOf[Database], db),
(classOf[JdbcProfile], profile),
(classOf[JournalConfig], journalConfig),
(classOf[Serialization], SerializationExtension(system)),
(classOf[ExecutionContext], ec),
(classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[JournalConfig], journalConfig),
(classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[JournalDao](fqcn, args) match {
case Success(dao) => dao
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@ class JdbcReadJournal(config: Config, configPath: String)(implicit val system: E
val fqcn = readJournalConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
(classOf[Database], db),
(classOf[JdbcProfile], profile),
(classOf[ReadJournalConfig], readJournalConfig),
(classOf[Serialization], SerializationExtension(system)),
(classOf[ExecutionContext], ec),
(classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[ReadJournalConfig], readJournalConfig),
(classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.dynamicAccess.createInstanceFor[ReadJournalDao](fqcn, args) match {
case Success(dao) => dao
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ class JdbcSnapshotStore(config: Config) extends SnapshotStore {
val fqcn = snapshotConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
(classOf[Database], db),
(classOf[JdbcProfile], profile),
(classOf[SnapshotConfig], snapshotConfig),
(classOf[Serialization], SerializationExtension(system)),
(classOf[ExecutionContext], ec),
(classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[SnapshotConfig], snapshotConfig),
(classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[SnapshotDao](fqcn, args) match {
case Success(dao) => dao
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ import slick.sql.SqlStreamingAction
import profile.api._

def getSequenceNextValueExpr() =
sql"""SELECT nextval(pg_get_serial_sequence('#${durableStateTableCfg.tableName}', '#${durableStateTableCfg.columnNames.globalOffset}'))""".as[
sql"""SELECT nextval(pg_get_serial_sequence('#${durableStateTableCfg.tableName}', '#${durableStateTableCfg
.columnNames.globalOffset}'))""".as[
String]
}

Expand All @@ -84,6 +85,7 @@ import slick.sql.SqlStreamingAction
import profile.api._

def getSequenceNextValueExpr() =
sql"""SELECT #${durableStateTableCfg.tableName}__#${durableStateTableCfg.columnNames.globalOffset}_SEQ.nextval FROM DUAL""".as[
sql"""SELECT #${durableStateTableCfg.tableName}__#${durableStateTableCfg.columnNames
.globalOffset}_SEQ.nextval FROM DUAL""".as[
String]
}
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,8 @@ abstract class QueryTestSpec(config: String, configOverrides: Map[String, Config
def withDao(f: JournalDao => Unit)(implicit system: ActorSystem, ec: ExecutionContext, mat: Materializer): Unit = {
val fqcn: String = journalConfig.pluginConfig.dao
val args: immutable.Seq[(Class[_], AnyRef)] = immutable.Seq(
(classOf[Database], db),
(classOf[JdbcProfile], profile),
(classOf[JournalConfig], journalConfig),
(classOf[Serialization], SerializationExtension(system)),
(classOf[ExecutionContext], ec),
(classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[JournalConfig], journalConfig),
(classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
val journalDao: JournalDao =
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[JournalDao](fqcn, args) match {
Expand Down

0 comments on commit 8de5f86

Please sign in to comment.