mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-31 20:23:39 +00:00
unecessary decompression
This commit is contained in:
@@ -74,7 +74,6 @@ dependencies:
|
||||
- yesod-auth-basic
|
||||
- yesod-core
|
||||
- yesod-persistent
|
||||
- zip-stream
|
||||
|
||||
library:
|
||||
source-dirs: src
|
||||
|
||||
@@ -193,7 +193,7 @@ postEosUploadR = do
|
||||
createDirectoryIfMissing True resourcesTemp
|
||||
withTempDirectory resourcesTemp "neweos" $ \dir -> do
|
||||
let path = dir </> "eos" <.> "img"
|
||||
runConduit $ rawRequestBody .| ungzip .| sinkFile path
|
||||
runConduit $ rawRequestBody .| sinkFile path
|
||||
void . runDB $ upsert (EosHash version hash) [EosHashHash =. hash]
|
||||
let targetPath = root </> show version
|
||||
removePathForcibly targetPath
|
||||
|
||||
Reference in New Issue
Block a user