Skip to content

Commit

Permalink
Merge pull request #1880 from tpolecat/remove_unnecessary_
Browse files Browse the repository at this point in the history
Remove unnecessary context bound for HikariTransactor.apply
  • Loading branch information
jatcwang authored Jun 18, 2023
2 parents 7af9523 + 1f800d6 commit 518139d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import scala.concurrent.ExecutionContext
object HikariTransactor {

/** Construct a `HikariTransactor` from an existing `HikariDatasource`. */
def apply[M[_]: Async] = new HikariTransactorPartiallyApplied[M]
def apply[M[_]] = new HikariTransactorPartiallyApplied[M]

class HikariTransactorPartiallyApplied[M[_]](implicit M: Async[M]) {
class HikariTransactorPartiallyApplied[M[_]] {
def apply(
hikariDataSource: HikariDataSource,
connectEC: ExecutionContext,
logHandler: Option[LogHandler[M]] = None
): HikariTransactor[M] = {
)(implicit ev: Async[M]): HikariTransactor[M] = {
Transactor.fromDataSource[M](hikariDataSource, connectEC, logHandler)
}
}
Expand Down

0 comments on commit 518139d

Please sign in to comment.