mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 12:18:29 +01:00
Blob store overwriting
This commit is contained in:
parent
5e4dcc090e
commit
e32df84ac4
@ -130,6 +130,9 @@ cachedS3Store cache creds bucket prefix manager =
|
||||
$ requestBodySource len
|
||||
$ sourceHandle inH)
|
||||
void $ Aws.readResponseIO res
|
||||
liftIO $ IO.withFile fp IO.ReadMode $ \inH -> withAcquire
|
||||
(storeWrite' (fileStore cache) key)
|
||||
(sourceHandle inH $$)
|
||||
else storeWrite' (fileStore cache) key
|
||||
, storeRead' = \key ->
|
||||
if shouldBackup key
|
||||
|
||||
Loading…
Reference in New Issue
Block a user