Skip to content

Commit

Permalink
Don't make f cancelable
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Mar 14, 2024
1 parent 4491c95 commit 68d94c7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/core/shared/src/main/scala/Trace.scala
Expand Up @@ -552,7 +552,6 @@ object Trace {
override def span[A](name: String, options: Span.Options)(k: Resource[F, A]): Resource[F, A] =
trace.spanR(name, options).flatMap { f =>
Resource.applyFull { cancelable =>
// todo: should f be cancelable? does it matter?
f(cancelable(k.allocatedCase)).map { case (a, release) =>
a -> release.andThen(f(_))
}
Expand Down

0 comments on commit 68d94c7

Please sign in to comment.