Skip to content

Commit

Permalink
refactor: drop getPool
Browse files Browse the repository at this point in the history
  • Loading branch information
robx committed Aug 2, 2022
1 parent 1d15060 commit d4950c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PostgREST/AppState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module PostgREST.AppState
, getJsonDbS
, getMainThreadId
, getPgVersion
, getPool
, getTime
, getRetryNextIn
, init
Expand Down Expand Up @@ -95,9 +94,6 @@ initPool :: AppConfig -> IO SQL.Pool
initPool AppConfig{..} =
SQL.acquire (configDbPoolSize, configDbPoolTimeout, toUtf8 configDbUri)

getPool :: AppState -> SQL.Pool
getPool = statePool

usePool :: AppState -> SQL.Session a -> IO (Either SQL.UsageError a)
usePool AppState{..} = SQL.use statePool

Expand Down

0 comments on commit d4950c6

Please sign in to comment.