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)
|
q <- asks (view downloadQ)
|
||||||
inq <- asks (view blockInQ)
|
inq <- asks (view blockInQ)
|
||||||
liftIO $ atomically $ do
|
liftIO $ atomically $ do
|
||||||
h <- readTQueue q
|
readTQueue q
|
||||||
modifyTVar inq (HashMap.delete h)
|
-- modifyTVar inq (HashMap.delete h)
|
||||||
pure h
|
-- pure h
|
||||||
|
|
||||||
withBlockForDownload :: (MonadIO m, MyPeer e, HasStorage m, HasPeerLocator e m)
|
withBlockForDownload :: (MonadIO m, MyPeer e, HasStorage m, HasPeerLocator e m)
|
||||||
=> Peer e
|
=> Peer e
|
||||||
|
|
Loading…
Reference in New Issue