Skip to content

Commit

Permalink
Merge pull request #880 from iRevive/sdk/mapref-apply
Browse files Browse the repository at this point in the history
Use `MapRef.apply`
  • Loading branch information
iRevive authored Jan 1, 2025
2 parents 26ff053 + 70bc558 commit 6bbbe03
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 6bbbe03

Please sign in to comment.