~jan0sch/smederee

Showing details for patch acf8a7dbbeb7fe30c159475b7239a2002e548799.
2022-12-05 (Mon), 4:34 PM - Jens Grassel - acf8a7dbbeb7fe30c159475b7239a2002e548799

Update cats-effect to 3.4.2

Summary of changes
3 files modified with 5 lines added and 3 lines removed
  • build.sbt with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 2 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala with 2 added and 1 removed lines
diff -rN -u old-smederee/build.sbt new-smederee/build.sbt
--- old-smederee/build.sbt	2025-02-01 09:42:35.465956359 +0000
+++ new-smederee/build.sbt	2025-02-01 09:42:35.465956359 +0000
@@ -316,7 +316,7 @@
       val apacheSshd      = "2.9.2"
       val bouncyCastle    = "1.72"
       val cats            = "2.9.0"
-      val catsEffect      = "3.3.14"
+      val catsEffect      = "3.4.2"
       val circe           = "0.14.3"
       val commonMark      = "0.21.0"
       val doobie          = "1.0.0-RC2"
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala new-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala	2025-02-01 09:42:35.465956359 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala	2025-02-01 09:42:35.465956359 +0000
@@ -214,7 +214,8 @@
     *   Either `true` if the repository is readable by the user or `false` otherwise.
     */
   protected def repositoryIsReadableBy(ownerName: Username, repoName: VcsRepositoryName, userId: UserId): Boolean =
-    Dispatcher[IO]
+    Dispatcher
+      .sequential[IO]
       .use { dispatcher =>
         for {
           _        <- IO.delay(log.debug(s"Checking if vcs repository $ownerName/$repoName is readable by $userId."))
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala new-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala	2025-02-01 09:42:35.465956359 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala	2025-02-01 09:42:35.465956359 +0000
@@ -58,7 +58,8 @@
   private val log = LoggerFactory.getLogger(getClass)
 
   override def authenticate(providedUsername: String, providedPublicKey: PublicKey, session: ServerSession): Boolean =
-    Dispatcher[IO]
+    Dispatcher
+      .sequential[IO]
       .use { dispatcher =>
         val check = for {
           _ <- IO.delay(log.debug(s"Authentication request for $providedUsername from ${session.getRemoteAddress()}."))