From 277abad289d9d96fed83aad2c169b2c6370d2693 Mon Sep 17 00:00:00 2001 From: Honza Strnad Date: Fri, 27 Nov 2020 10:39:53 +0100 Subject: [PATCH] fix(doobie): remove autocommit config that has no effect (#397) Co-authored-by: Jan Strnad --- .../src/main/scala/com/avast/sst/doobie/DoobieHikariConfig.scala | 1 - .../src/main/scala/com/avast/sst/doobie/DoobieHikariModule.scala | 1 - 2 files changed, 2 deletions(-) diff --git a/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariConfig.scala b/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariConfig.scala index ed74c12ae..3143fb71e 100644 --- a/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariConfig.scala +++ b/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariConfig.scala @@ -11,7 +11,6 @@ final case class DoobieHikariConfig( url: String, username: String, password: String, - autoCommit: Boolean = false, connectionTimeout: FiniteDuration = FiniteDuration(30, TimeUnit.SECONDS), idleTimeout: FiniteDuration = FiniteDuration(10, TimeUnit.MINUTES), maxLifeTime: FiniteDuration = FiniteDuration(30, TimeUnit.MINUTES), diff --git a/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariModule.scala b/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariModule.scala index 70a5bbde2..429cb1fd8 100644 --- a/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariModule.scala +++ b/doobie-hikari/src/main/scala/com/avast/sst/doobie/DoobieHikariModule.scala @@ -51,7 +51,6 @@ object DoobieHikariModule { c.setJdbcUrl(config.url) c.setUsername(config.username) c.setPassword(config.password) - c.setAutoCommit(config.autoCommit) c.setConnectionTimeout(config.connectionTimeout.toMillis) c.setIdleTimeout(config.idleTimeout.toMillis) c.setMaxLifetime(config.maxLifeTime.toMillis)