From 169dd64ba2969ea799539bd8e0d786a8e626e09e Mon Sep 17 00:00:00 2001 From: Eric Meisel Date: Tue, 6 Jul 2021 11:01:36 -0400 Subject: [PATCH] Fix for SHOULD_PERSIST_DATA (#133) --- src/main/scala/kinesis/mock/cache/Cache.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/kinesis/mock/cache/Cache.scala b/src/main/scala/kinesis/mock/cache/Cache.scala index 11c12ebe..0d9ea6af 100644 --- a/src/main/scala/kinesis/mock/cache/Cache.scala +++ b/src/main/scala/kinesis/mock/cache/Cache.scala @@ -1242,7 +1242,7 @@ object Cache { )(implicit C: Concurrent[IO], P: Parallel[IO]): IO[Cache] = { val om = new ObjectMapper() - IO(os.exists(config.persistConfig.osPath)).ifM( + IO(os.exists(config.persistConfig.osFile)).ifM( for { jn <- IO(om.readTree(config.persistConfig.osFile.toIO)) streams <- IO.fromEither(jacksonToCirce(jn).as[Streams])