diff options
Diffstat (limited to 'src/System/Torrent/Storage.hs')
-rw-r--r-- | src/System/Torrent/Storage.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/System/Torrent/Storage.hs b/src/System/Torrent/Storage.hs index 363f94ef..98cccccd 100644 --- a/src/System/Torrent/Storage.hs +++ b/src/System/Torrent/Storage.hs | |||
@@ -193,6 +193,15 @@ validatePiece pix st @ Storage {..} = {-# SCC validatePiece #-} do | |||
193 | -- resetPiece pix st | 193 | -- resetPiece pix st |
194 | return True | 194 | return True |
195 | 195 | ||
196 | -- | Check each piece in the storage against content info hash. | ||
197 | -- | ||
198 | -- Note that this function will block until each the entire storage | ||
199 | -- checked. This may take a long time for a big torrents use fork | ||
200 | -- if needed. | ||
201 | -- | ||
202 | validateStorage :: Storage -> IO () | ||
203 | validateStorage st = undefined -- (`validatePiece` st) [0..pieceCount st] | ||
204 | |||
196 | {----------------------------------------------------------------------- | 205 | {----------------------------------------------------------------------- |
197 | Internal | 206 | Internal |
198 | -----------------------------------------------------------------------} | 207 | -----------------------------------------------------------------------} |