core: remove connection pool (#738)

* core: remove connection pool

* remove local ref from cabal.project

* update simplexmq

* log test

* fix test
This commit is contained in:
Evgeny Poberezkin
2022-06-16 20:00:51 +01:00
committed by GitHub
parent 1f1ed3f3dd
commit c62d99ab97
13 changed files with 15 additions and 15 deletions

View File

@@ -99,14 +99,14 @@ testCfgV1 = testCfg {agentConfig = testAgentCfgV1}
createTestChat :: ChatConfig -> ChatOpts -> String -> Profile -> IO TestCC
createTestChat cfg opts dbPrefix profile = do
let dbFilePrefix = testDBPrefix <> dbPrefix
st <- createStore (dbFilePrefix <> "_chat.db") 1 False
st <- createStore (dbFilePrefix <> "_chat.db") False
Right user <- runExceptT $ createUser st profile True
startTestChat_ st cfg opts dbFilePrefix user
startTestChat :: ChatConfig -> ChatOpts -> String -> IO TestCC
startTestChat cfg opts dbPrefix = do
let dbFilePrefix = testDBPrefix <> dbPrefix
st <- createStore (dbFilePrefix <> "_chat.db") 1 False
st <- createStore (dbFilePrefix <> "_chat.db") False
Just user <- find activeUser <$> getUsers st
startTestChat_ st cfg opts dbFilePrefix user
@@ -262,6 +262,7 @@ serverCfg =
queueIdBytes = 12,
msgIdBytes = 6,
storeLogFile = Nothing,
storeMsgsFile = Nothing,
allowNewQueues = True,
messageExpiration = Just defaultMessageExpiration,
inactiveClientExpiration = Just defaultInactiveClientExpiration,