This commit is contained in:
Dmitry Zuikov 2023-01-27 10:37:45 +03:00
parent 36b9eb090a
commit c2af04b79f
4 changed files with 8 additions and 5 deletions

View File

@ -33,8 +33,8 @@ outputs = { self, nixpkgs, haskell-flake-utils, ... }@inputs:
packagePostOverrides = { pkgs }: with pkgs; with haskell.lib; [ packagePostOverrides = { pkgs }: with pkgs; with haskell.lib; [
enableExecutableProfiling disableExecutableProfiling
enableLibraryProfiling disableLibraryProfiling
dontBenchmark dontBenchmark
dontCoverage dontCoverage
dontDistribute dontDistribute

View File

@ -60,7 +60,7 @@ common shared-properties
-- -fno-warn-unused-binds -- -fno-warn-unused-binds
-threaded -threaded
-rtsopts -rtsopts
"-with-rtsopts=-N8 -A64m -AL256m -I0" "-with-rtsopts=-N4 -A256m -AL256m -I0"
default-language: Haskell2010 default-language: Haskell2010

View File

@ -438,7 +438,10 @@ blockDownloadLoop cw = do
-- debug $ pretty (show bt) -- debug $ pretty (show bt)
case bt of case bt of
Nothing -> pure () Nothing -> do
liftIO $ atomically $ Q.writeTBQueue q (DownloadTask h Nothing)
-- debug $ "NO FUCKING BLOCK FOUND!"
pure ()
Just (AnnRef{}) -> do Just (AnnRef{}) -> do
pure () pure ()

View File

@ -52,7 +52,7 @@ main = do
storage <- simpleStorageInit opts :: IO (SimpleStorage HbSync) storage <- simpleStorageInit opts :: IO (SimpleStorage HbSync)
w1 <- replicateM 4 $ async (simpleStorageWorker storage) w1 <- replicateM 1 $ async (simpleStorageWorker storage)
cw <- newChunkWriterIO @HbSync storage (Just (dir </> ".qqq")) cw <- newChunkWriterIO @HbSync storage (Just (dir </> ".qqq"))