diff options
Diffstat (limited to 'Storage')
-rw-r--r-- | Storage/Local.hs | 1 | ||||
-rw-r--r-- | Storage/Network.hs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Storage/Local.hs b/Storage/Local.hs index 49ed311..6a952fa 100644 --- a/Storage/Local.hs +++ b/Storage/Local.hs @@ -41,6 +41,7 @@ localStorage getsharedir n = Storage , countShares = count section getsharedir , moveShares = move section getsharedir , uploadQueue = Nothing + , getServer = Nothing } where section = Section n diff --git a/Storage/Network.hs b/Storage/Network.hs index ff33e3f..dec6d57 100644 --- a/Storage/Network.hs +++ b/Storage/Network.hs @@ -11,8 +11,8 @@ module Storage.Network ( import Types import Types.Storage +import Types.Server import Storage.Local -import Servers import HTTP.Client import HTTP.ProofOfWork import System.FilePath @@ -26,6 +26,7 @@ networkStorage localdir server = Storage , moveShares = move server , uploadQueue = Just $ localStorage (storageDir localdir) ("uploadqueue" </> serverName server) + , getServer = Just server } store :: Server -> StorableObjectIdent -> Share -> IO StoreResult |