Skip to content

Commit

Permalink
layers are vals
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ciocirlan committed May 15, 2024
1 parent 0addb6f commit 876ed81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/rockthejvm/db/DbMigrator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ class DbMigrator(ds: DataSource) {
object DbMigrator {
case class DbMigrationFailed(msg: String, stackTrace: String) extends RuntimeException(s"$msg\n$stackTrace")

def live: ZLayer[DataSource, Nothing, DbMigrator] =
val live: ZLayer[DataSource, Nothing, DbMigrator] =
ZLayer.fromFunction(DbMigrator(_))
}

0 comments on commit 876ed81

Please sign in to comment.