Skip to content

Commit

Permalink
fix: 🐛 run ULID.newULIDString in a blocking context
Browse files Browse the repository at this point in the history
ULID.newULIDString use 'synchronized'
  • Loading branch information
ThatScalaGuy committed May 17, 2023
1 parent dcd29c7 commit eee8400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/de/thatscalaguy/ulid4cats/FULID.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object FULID {
def apply[F[_]](implicit ev: FULID[F]): ev.type = ev

implicit def instance[F[_]: Sync]: FULID[F] = new FULID[F] {
override def generate: F[String] = Sync[F].delay(ULID.newULIDString)
override def generate: F[String] = Sync[F].blocking(ULID.newULIDString)

override def timeStamp(ulid: String): F[Option[Long]] =
Sync[F]
Expand Down

0 comments on commit eee8400

Please sign in to comment.