Skip to content

Commit

Permalink
Fix docs codec
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcardell committed Sep 19, 2024
1 parent 2eada7a commit 653b642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ See `Flipt usage` on how to set up the `FliptApi`. Once done, set up a provider:

```scala mdoc
import cats.effect.IO
import io.circe.Decoder
import io.circe.Codec

import io.cardell.flipt.FliptApi
import io.cardell.openfeature.OpenFeature
Expand All @@ -53,7 +53,7 @@ import io.cardell.openfeature.circe._

case class SomeVariant(field: String, field2: Int)

def provider(flipt: FliptApi[IO])(implicit d: Decoder[SomeVariant]) = {
def provider(flipt: FliptApi[IO])(implicit c: Codec[SomeVariant]) = {
val featureSdk = OpenFeature[IO](new FliptProvider[IO](flipt, "some-namespace"))

featureSdk.client.flatMap { featureClient =>
Expand Down

0 comments on commit 653b642

Please sign in to comment.