mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-10 10:07: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
|
$ requestBodySource len
|
||||||
$ sourceHandle inH)
|
$ sourceHandle inH)
|
||||||
void $ Aws.readResponseIO res
|
void $ Aws.readResponseIO res
|
||||||
|
liftIO $ IO.withFile fp IO.ReadMode $ \inH -> withAcquire
|
||||||
|
(storeWrite' (fileStore cache) key)
|
||||||
|
(sourceHandle inH $$)
|
||||||
else storeWrite' (fileStore cache) key
|
else storeWrite' (fileStore cache) key
|
||||||
, storeRead' = \key ->
|
, storeRead' = \key ->
|
||||||
if shouldBackup key
|
if shouldBackup key
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user