mirror of https://github.com/voidlizard/hbs2
minor-fix
This commit is contained in:
parent
179a0b49a3
commit
8bbc15bc5b
|
@ -46,9 +46,9 @@ getBlockForDownload = do
|
|||
q <- asks (view downloadQ)
|
||||
inq <- asks (view blockInQ)
|
||||
liftIO $ atomically $ do
|
||||
h <- readTQueue q
|
||||
modifyTVar inq (HashMap.delete h)
|
||||
pure h
|
||||
readTQueue q
|
||||
-- modifyTVar inq (HashMap.delete h)
|
||||
-- pure h
|
||||
|
||||
withBlockForDownload :: (MonadIO m, MyPeer e, HasStorage m, HasPeerLocator e m)
|
||||
=> Peer e
|
||||
|
|
Loading…
Reference in New Issue