module Tahoe.Download.Internal.Mutable where
import Control.Monad.IO.Class (MonadIO)
import Tahoe.Announcement (StorageServerAnnouncement)
import Tahoe.CHK.Server (StorageServer)
import Tahoe.Download.Internal.Client (LookupError, announcementToStorageServer)
import TahoeLAFS.Storage.Client (getMutableShareNumbers, readMutableShares)
announcementToMutableStorageServer :: MonadIO m => StorageServerAnnouncement -> m (Either LookupError StorageServer)
announcementToMutableStorageServer :: StorageServerAnnouncement -> m (Either LookupError StorageServer)
announcementToMutableStorageServer = GetShareNumbers
-> ReadShare
-> StorageServerAnnouncement
-> m (Either LookupError StorageServer)
forall (m :: * -> *).
MonadIO m =>
GetShareNumbers
-> ReadShare
-> StorageServerAnnouncement
-> m (Either LookupError StorageServer)
announcementToStorageServer GetShareNumbers
getMutableShareNumbers ReadShare
readMutableShares