summaryrefslogtreecommitdiffhomepage
path: root/Storage/Local.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-14 14:02:29 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-14 14:28:56 -0400
commit0a3eb9be07a7514f5544384bc914f22ea88c24a8 (patch)
tree3e9ef44c3d61d4ed451d04b8a1d3e8f9de0dcf7a /Storage/Local.hs
parent8d1185c3884f8125cedf9c4c8060cb5d360e9ef4 (diff)
downloadkeysafe-0a3eb9be07a7514f5544384bc914f22ea88c24a8.tar.gz
Warn when uploads fail and are put in the upload queue.
Diffstat (limited to 'Storage/Local.hs')
-rw-r--r--Storage/Local.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Storage/Local.hs b/Storage/Local.hs
index 71d5aa7..20d0922 100644
--- a/Storage/Local.hs
+++ b/Storage/Local.hs
@@ -7,13 +7,11 @@ module Storage.Local
( localStorage
, storageDir
, testStorageDir
- , uploadQueue
, localDiskUsage
) where
import Types
import Types.Storage
-import Servers
import Serialization ()
import qualified Data.ByteString as B
import qualified Data.ByteString.UTF8 as U8
@@ -41,13 +39,11 @@ localStorage getsharedir n = Storage
, obscureShares = obscure section getsharedir
, countShares = count section getsharedir
, moveShares = move section getsharedir
+ , uploadQueue = Nothing
}
where
section = Section n
-uploadQueue :: Maybe LocalStorageDirectory -> Server -> Storage
-uploadQueue d s = localStorage (storageDir d) ("uploadqueue" </> serverName s)
-
store :: Section -> GetShareDir -> StorableObjectIdent -> Share -> IO StoreResult
store section getsharedir i s = onError (StoreFailure . show) $ do
dir <- getsharedir section