Skip to content

Commit

Permalink
Use cats.effect.Sync bound on pure cache instance (close #52)
Browse files Browse the repository at this point in the history
  • Loading branch information
pondzix committed Feb 10, 2022
1 parent b8ebdc9 commit 27cb68c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package com.snowplowanalytics.lrumap

import cats.Id
import cats.effect.Async
import cats.effect.Sync
import cats.syntax.functor._
import com.github.blemale.scaffeine.Scaffeine

Expand Down Expand Up @@ -55,7 +55,7 @@ object CreateLruMap {
}

/** Pure instance */
implicit def asyncInitCache[F[_], K, V](implicit F: Async[F]): CreateLruMap[F, K, V] =
implicit def syncInitCache[F[_], K, V](implicit F: Sync[F]): CreateLruMap[F, K, V] =
new CreateLruMap[F, K, V] {

def create(size: Int): F[LruMap[F, K, V]] =
Expand Down

0 comments on commit 27cb68c

Please sign in to comment.