refactor: fix inaccurate variable name (#2662)

This commit is contained in:
Robert
2023-02-14 17:09:48 +01:00
committed by GitHub
parent a1e2fe308f
commit 95d71281d6
+2 -2
View File
@@ -97,9 +97,9 @@ destroy = destroyPool
initPool :: AppConfig -> IO SQL.Pool
initPool AppConfig{..} =
SQL.acquire configDbPoolSize timeoutMilliseconds $ toUtf8 configDbUri
SQL.acquire configDbPoolSize timeoutMicroseconds $ toUtf8 configDbUri
where
timeoutMilliseconds = (* oneSecond) <$> configDbPoolAcquisitionTimeout
timeoutMicroseconds = (* oneSecond) <$> configDbPoolAcquisitionTimeout
oneSecond = 1000000
-- | Run an action with a database connection.