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; [
|
packagePostOverrides = { pkgs }: with pkgs; with haskell.lib; [
|
||||||
enableExecutableProfiling
|
disableExecutableProfiling
|
||||||
enableLibraryProfiling
|
disableLibraryProfiling
|
||||||
dontBenchmark
|
dontBenchmark
|
||||||
dontCoverage
|
dontCoverage
|
||||||
dontDistribute
|
dontDistribute
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 ()
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue