refactor: hlint
This commit is contained in:
parent
fb0ae65ac5
commit
32b2314d0c
@ -326,7 +326,7 @@ dispatchJobInjectFiles = JobHandlerException . maybeT (return ()) $ do
|
||||
eta :: Maybe Integer
|
||||
eta = do
|
||||
accsz' <- assertM' (/= 0) accsz
|
||||
return . ceiling $ (toRational currT - toRational startT) / (fromIntegral accsz') * (fromIntegral sz - fromIntegral accsz)
|
||||
return . ceiling $ (toRational currT - toRational startT) / fromIntegral accsz' * (fromIntegral sz - fromIntegral accsz)
|
||||
when (lastReport' /= lastReport || sz' >= fromIntegral sz) $
|
||||
flip runLoggingT logger . $logInfoS "InjectFiles" . mconcat $ catMaybes
|
||||
[ pure [st|Sinking chunk ##{tshow c} (#{textBytes csz}): #{textBytes sz'}/#{textBytes sz} (#{tshow p}%)|]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user