ip, log merging, debug-27

This commit is contained in:
Dmitry Zuikov 2023-07-20 09:14:00 +03:00
parent 8ebcb91946
commit 237732e25e
1 changed files with 4 additions and 4 deletions

View File

@ -192,11 +192,11 @@ refChanWorker env brains = do
h <- liftIO $ getRef sto (RefChanLogKey @s chan)
-- игнорируем, если синхронно
-- unless ((HashRef <$> h) == Just val) do
unless ((HashRef <$> h) == Just val) do
refChanAddDownload env chan val $ \href -> do
debug $ "BLOCK DOWNLOADED" <+> pretty href
atomically $ writeTQueue mergeQ (chan, href)
refChanAddDownload env chan val $ \href -> do
debug $ "BLOCK DOWNLOADED" <+> pretty href
atomically $ writeTQueue mergeQ (chan, href)
atomically $ writeTQueue mergeQ (chan, val)