                           (.setMaxConnectionsPerPartition partition-conn-max)
                           (.setPartitionCount partition-count)
                           (.setStatisticsEnabled stats)
-                          (.setMaxConnectionAge conn-max-age, TimeUnit/MINUTES)
-                          (.setIdleMaxAgeInMinutes conn-idle-max-age)
+                          (.setIdleMaxAgeInMinutes conn-max-age)
                           (.setIdleConnectionTestPeriodInMinutes conn-keep-alive)
                           ;; paste the URL back together from parts.
                           (.setJdbcUrl (str "jdbc:" subprotocol ":" subname))

           ;;  be in the config file and we're manually converting it to a boolean
           log-statements      "true"
           log-slow-statements 10
           conn-max-age        0
           conn-idle-max-age   60
           conn-keep-alive     240}
    :as   db}]
  ;; Load the database driver class

    ;; configurable without default
    (when username (.setUsername config (str username)))
    (when password (.setPassword config (str password)))
    (when conn-lifetime (.setMaxConnectionAge config conn-lifetime TimeUnit/MINUTES))
    (when log-statements? (.setLogStatementsEnabled config log-statements?))
    (when log-slow-statements
      (.setQueryExecuteTimeLimit config log-slow-statements (TimeUnit/SECONDS)))
