Skip to content

Instantly share code, notes, and snippets.

@karknu
Created October 15, 2018 13:35
Show Gist options
  • Save karknu/79e2aebe3dcb861ed177efe695b9836a to your computer and use it in GitHub Desktop.
Save karknu/79e2aebe3dcb861ed177efe695b9836a to your computer and use it in GitHub Desktop.
dbgen needs a bouned queue too.
diff --git a/tools/src/dbgen/Main.hs b/tools/src/dbgen/Main.hs
index 34396767f8..37301574c1 100644
--- a/tools/src/dbgen/Main.hs
+++ b/tools/src/dbgen/Main.hs
@@ -12,7 +12,7 @@ module Main where
import Universum
-import Control.Concurrent.STM (newTQueueIO)
+import Control.Concurrent.STM (newTBQueueIO)
import Data.Default (def)
import Data.Maybe (isJust)
import Data.Time.Units (fromMicroseconds)
@@ -143,7 +143,7 @@ walletRunner
walletRunner genesisConfig txpConfig confOpts dbs publicKeyPath secretKeyPath ws act = do
wwmc <- WalletWebModeContext <$> pure ws
<*> newTVarIO def
- <*> liftIO newTQueueIO
+ <*> liftIO (newTBQueueIO 64)
<*> newRealModeContext genesisConfig txpConfig dbs confOpts publicKeyPath secretKeyPath
runReaderT act wwmc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment