From 2c7e526f6827bcfa722f90e38b46e41ead2eeb43 Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Thu, 16 May 2024 14:28:01 +0700 Subject: [PATCH] Use skunk 1.0.0-M6 --- modules/db/src/main/scala/DbResource.scala | 3 ++- project/Dependencies.scala | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/db/src/main/scala/DbResource.scala b/modules/db/src/main/scala/DbResource.scala index a73232c..e357b05 100644 --- a/modules/db/src/main/scala/DbResource.scala +++ b/modules/db/src/main/scala/DbResource.scala @@ -5,7 +5,6 @@ import cats.* import cats.effect.* import cats.syntax.all.* import fs2.io.net.Network -import natchez.Trace.Implicits.noop import org.typelevel.log4cats.Logger import org.typelevel.log4cats.syntax.* import skunk.* @@ -16,6 +15,8 @@ class DbResource private (val postgres: Resource[IO, Session[IO]]) object DbResource: + given org.typelevel.otel4s.trace.Tracer[IO] = org.typelevel.otel4s.trace.Tracer.noop[IO] + def instance(postgresConf: PostgresConfig)(using Logger[IO]): Resource[IO, DbResource] = def checkPostgresConnection(postgres: Resource[IO, Session[IO]]): IO[Unit] = diff --git a/project/Dependencies.scala b/project/Dependencies.scala index f06789e..daf487c 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -30,7 +30,7 @@ object Dependencies { val http4sClient = http4s("client") val http4sEmberClient = http4s("ember-client") - val skunk = "org.tpolecat" %% "skunk-core" % "0.6.4" + val skunk = "org.tpolecat" %% "skunk-core" % "1.0.0-M6" val flyway4s = "com.github.geirolz" %% "fly4s" % "1.0.3" val flyway = "org.flywaydb" % "flyway-core" % V.flyway val flywayPostgres = "org.flywaydb" % "flyway-database-postgresql" % V.flyway