From 70bc5584a0b8c28dc08dc2a16276e566014a2ba9 Mon Sep 17 00:00:00 2001 From: Maksym Ochenashko Date: Wed, 1 Jan 2025 21:28:12 +0200 Subject: [PATCH] Use `MapRef.apply` --- .../main/scala/org/typelevel/otel4s/sdk/trace/SpanStorage.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/trace/src/main/scala/org/typelevel/otel4s/sdk/trace/SpanStorage.scala b/sdk/trace/src/main/scala/org/typelevel/otel4s/sdk/trace/SpanStorage.scala index 766e3a56d..2e5f030ae 100644 --- a/sdk/trace/src/main/scala/org/typelevel/otel4s/sdk/trace/SpanStorage.scala +++ b/sdk/trace/src/main/scala/org/typelevel/otel4s/sdk/trace/SpanStorage.scala @@ -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) }