Skip to content

Commit

Permalink
Use MapRef.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Jan 1, 2025
1 parent 26ff053 commit 70bc558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ private class SpanStorage[F[_]] private (
private object SpanStorage {
def create[F[_]: Concurrent]: F[SpanStorage[F]] =
for {
storage <- MapRef.ofShardedImmutableMap[F, SpanContext, SpanRef[F]](Runtime.getRuntime.availableProcessors())
storage <- MapRef[F, SpanContext, SpanRef[F]]
} yield new SpanStorage[F](storage)
}

0 comments on commit 70bc558

Please sign in to comment.