mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
36b9eb090a
commit
c2af04b79f
|
@ -33,8 +33,8 @@ outputs = { self, nixpkgs, haskell-flake-utils, ... }@inputs:
|
|||
|
||||
|
||||
packagePostOverrides = { pkgs }: with pkgs; with haskell.lib; [
|
||||
enableExecutableProfiling
|
||||
enableLibraryProfiling
|
||||
disableExecutableProfiling
|
||||
disableLibraryProfiling
|
||||
dontBenchmark
|
||||
dontCoverage
|
||||
dontDistribute
|
||||
|
|
|
@ -60,7 +60,7 @@ common shared-properties
|
|||
-- -fno-warn-unused-binds
|
||||
-threaded
|
||||
-rtsopts
|
||||
"-with-rtsopts=-N8 -A64m -AL256m -I0"
|
||||
"-with-rtsopts=-N4 -A256m -AL256m -I0"
|
||||
|
||||
|
||||
default-language: Haskell2010
|
||||
|
|
|
@ -438,7 +438,10 @@ blockDownloadLoop cw = do
|
|||
-- debug $ pretty (show bt)
|
||||
|
||||
case bt of
|
||||
Nothing -> pure ()
|
||||
Nothing -> do
|
||||
liftIO $ atomically $ Q.writeTBQueue q (DownloadTask h Nothing)
|
||||
-- debug $ "NO FUCKING BLOCK FOUND!"
|
||||
pure ()
|
||||
|
||||
Just (AnnRef{}) -> do
|
||||
pure ()
|
||||
|
|
|
@ -52,7 +52,7 @@ main = do
|
|||
|
||||
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"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue