Skip to content

Commit

Permalink
Abandon ship on BlockingHttp4sServlet.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed May 26, 2022
1 parent 9512791 commit f34824e
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ class BlockingHttp4sServlet[F[_]](
}

object BlockingHttp4sServlet {
def apply[F[_]: Sync](

/** Call the constructor directly for a weaker [[cats.effect.Sync]]
* constraint.
*/
def apply[F[_]: Async](
service: HttpApp[F],
servletIo: ServletIo[F],
dispatcher: Dispatcher[F],
Expand All @@ -100,16 +104,4 @@ object BlockingHttp4sServlet {
DefaultServiceErrorHandler,
dispatcher,
)

@deprecated(
"Preserved for binary compatibility. Use the overload with the implicit Sync",
"0.23.12",
)
def apply[F[_]](
service: HttpApp[F],
servletIo: ServletIo[F],
dispatcher: Dispatcher[F],
async: Async[F],
): BlockingHttp4sServlet[F] =
apply(service, servletIo, dispatcher)(async: Sync[F])
}

0 comments on commit f34824e

Please sign in to comment.