make metered more generic
Allow it to be used when the Key is not known.
This commit is contained in:
parent
8355dba5cc
commit
26c54d6ea3
4 changed files with 39 additions and 22 deletions
|
@ -360,7 +360,7 @@ downloadImport remote importtreeconfig importablecontents = do
|
|||
Nothing -> return Nothing
|
||||
checkDiskSpaceToGet tmpkey Nothing $
|
||||
withTmp tmpkey $ \tmpfile ->
|
||||
metered Nothing tmpkey (return Nothing) $
|
||||
metered Nothing tmpkey $
|
||||
const (rundownload tmpfile)
|
||||
where
|
||||
ia = Remote.importActions remote
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue