core: reduce usage of STM transactions for better performance and memory usage (#4636)

* core: reduce usage of STM transactions for better performance and memory usage

* simplexmq

* fix test crash

* enable all tests

* simplexmq
This commit is contained in:
Evgeny
2024-08-09 22:30:30 +01:00
committed by GitHub
parent a3550df893
commit 0a4ff2e35f
5 changed files with 13 additions and 15 deletions
@@ -65,7 +65,7 @@ data ServiceState = ServiceState
newServiceState :: IO ServiceState
newServiceState = do
searchRequests <- atomically TM.empty
searchRequests <- TM.emptyIO
pure ServiceState {searchRequests}
welcomeGetOpts :: IO DirectoryOpts