Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisrael Union committed Sep 17, 2024
1 parent 3983f49 commit ac17353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/shared/src/main/scala/cats/effect/std/MapRef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ object MapRef extends MapRefCompanionPlatform {
*/
def apply[F[_]: Concurrent, K, V]: F[MapRef[F, K, Option[V]]] = {
Concurrent[F] match {
case a: Sync[F] =>
ofConcurrentHashMap()(a)
case s: Sync[F] =>
ofConcurrentHashMap()(s)
case _ =>
ofShardedImmutableMap[F, K, V](shardCount = Runtime.getRuntime.availableProcessors())
}
Expand Down

0 comments on commit ac17353

Please sign in to comment.