Commit 0f0f9520 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[DB] gargPool

parent b69c48c1
......@@ -35,7 +35,7 @@ import System.Environment (lookupEnv)
import System.IO (FilePath, hClose)
import System.IO.Temp (withTempFile)
import System.FileLock (tryLockFile, unlockFile, SharedExclusive(Exclusive))
import Database.PostgreSQL.Simple (Connection, connect)
import Database.PostgreSQL.Simple (Connection, connect, close)
import Network.HTTP.Client (Manager)
import Network.HTTP.Client.TLS (newTlsManager)
......@@ -269,6 +269,9 @@ newEnv port file = do
, _env_self_url = self_url
}
gargPool :: IO (Pool a)
gargPool = createPool connect close 1 (60*60) 8
data DevEnv = DevEnv
{ _dev_env_conn :: !Connection
, _dev_env_repo :: !RepoEnv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment