Created
October 15, 2018 13:35
-
-
Save karknu/79e2aebe3dcb861ed177efe695b9836a to your computer and use it in GitHub Desktop.
dbgen needs a bouned queue too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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