mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
59e9f8a718
commit
548828e47f
|
@ -104,6 +104,12 @@ ncqTossBlock :: MonadUnliftIO m
|
||||||
ncqTossBlock sto lbs = ncqPutBlock0 sto lbs False
|
ncqTossBlock sto lbs = ncqPutBlock0 sto lbs False
|
||||||
{-# INLINE ncqTossBlock #-}
|
{-# INLINE ncqTossBlock #-}
|
||||||
|
|
||||||
|
-- FIXME: ncqLocate-slows-write
|
||||||
|
|
||||||
|
-- FIXME: resources-exhausted
|
||||||
|
-- test-ncq debug off and test:root temp and test:dir:keep and test:ncq3:merkle:file ./f10g
|
||||||
|
-- test-ncq: openAnonymousTempFileFromDir:
|
||||||
|
-- resource exhausted (Too many open files)
|
||||||
ncqPutBlock0 :: MonadUnliftIO m
|
ncqPutBlock0 :: MonadUnliftIO m
|
||||||
=> NCQStorage
|
=> NCQStorage
|
||||||
-> LBS.ByteString
|
-> LBS.ByteString
|
||||||
|
|
|
@ -608,13 +608,15 @@ ncq3Tests = do
|
||||||
hashes <- forConcurrently chu $ \chunk -> do
|
hashes <- forConcurrently chu $ \chunk -> do
|
||||||
ncqTossBlock ncq chunk >>= orThrowUser "can't save"
|
ncqTossBlock ncq chunk >>= orThrowUser "can't save"
|
||||||
|
|
||||||
-- FIXME: handle-hardcode
|
none
|
||||||
let pt = toPTree (MaxSize 1024) (MaxNum 256) hashes -- FIXME: settings
|
|
||||||
|
|
||||||
m <- makeMerkle 0 pt $ \(_,_,bss) -> liftIO do
|
-- -- FIXME: handle-hardcode
|
||||||
void $ ncqPutBlock ncq bss >>= orThrowUser "can't save"
|
-- let pt = toPTree (MaxSize 1024) (MaxNum 256) hashes -- FIXME: settings
|
||||||
|
|
||||||
notice $ pretty m
|
-- m <- makeMerkle 0 pt $ \(_,_,bss) -> liftIO do
|
||||||
|
-- void $ ncqPutBlock ncq bss >>= orThrowUser "can't save"
|
||||||
|
|
||||||
|
-- notice $ pretty m
|
||||||
|
|
||||||
entry $ bindMatch "test:ncq3:merkle" $ nil_ $ \e -> runTest $ \TestEnv{..} -> do
|
entry $ bindMatch "test:ncq3:merkle" $ nil_ $ \e -> runTest $ \TestEnv{..} -> do
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue