Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
fix deprecated lift
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Jan 3, 2018
1 parent 769cb89 commit 1a0240f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sealed abstract class SecuredRequestHandler[F[_], Identity, User, Auth](
middleware(service)
.handleErrorWith { e =>
SecuredRequestHandler.logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}
}

Expand All @@ -59,7 +59,7 @@ sealed abstract class SecuredRequestHandler[F[_], Identity, User, Auth](
authorizedMiddleware(authorization, onNotAuthenticated)(service)
.handleErrorWith { e =>
SecuredRequestHandler.logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}

}
Expand Down Expand Up @@ -92,7 +92,7 @@ object SecuredRequestHandler {
middleware(TSecAuthService(pf, authenticator.afterBlock))
.handleErrorWith { e =>
logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}
}

Expand All @@ -104,7 +104,7 @@ object SecuredRequestHandler {
authorizedMiddleware(authorization, onNotAuthenticated)(TSecAuthService(pf, authenticator.afterBlock))
.handleErrorWith { e =>
logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}

}
Expand All @@ -125,7 +125,7 @@ object SecuredRequestHandler {
middleware(TSecAuthService(pf))
.handleErrorWith { e =>
logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}

}
Expand All @@ -138,7 +138,7 @@ object SecuredRequestHandler {
authorizedMiddleware(authorization, onNotAuthenticated)(TSecAuthService(pf))
.handleErrorWith { e =>
logger.error(e)("Caught unhandled exception in authenticated service")
Kleisli.lift(OptionT.pure(cachedUnauthorized))
Kleisli.liftF(OptionT.pure(cachedUnauthorized))
}
}

Expand Down

0 comments on commit 1a0240f

Please sign in to comment.