Skip to content

Commit

Permalink
Update SlickOffsetStore.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jun 12, 2024
1 parent aa6862f commit 589b32f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import slick.jdbc.JdbcProfile
system: ActorSystem[_],
databaseConfig: DatabaseConfig[P],
slickSettings: SlickSettings,
clock: Clock) {
clock: Clock) extends AutoCloseable {

def this(system: ActorSystem[_], databaseConfig: DatabaseConfig[P], slickSettings: SlickSettings) =
this(system, databaseConfig, slickSettings, Clock.systemUTC())
Expand Down Expand Up @@ -220,4 +220,8 @@ import slick.jdbc.JdbcProfile

db.run(action).map(_ => Done)(ExecutionContexts.parasitic)
}

def close(): Unit = {
db.close()
}
}

0 comments on commit 589b32f

Please sign in to comment.