progress meter for p2phttp storeKey
This commit is contained in:
parent
b3915b88ba
commit
cfdb80cd05
3 changed files with 6 additions and 4 deletions
|
@ -318,7 +318,7 @@ clientPut meterupdate k moffset af contentfile contentfilesize validitycheck cli
|
|||
return (Right res)
|
||||
where
|
||||
stream h checkv checkresultv = S.SourceT $ \a -> do
|
||||
bl <- L.hGetContents h
|
||||
bl <- hGetContentsMetered h meterupdate
|
||||
v <- newMVar (0, filter (not . B.null) (L.toChunks bl))
|
||||
a (go v)
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue