summaryrefslogtreecommitdiff
path: root/src/System
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-07-04 18:04:49 +0400
committerSam T <pxqr.sta@gmail.com>2013-07-04 18:04:49 +0400
commit1d1786e518d673969724abe759ff5cfc71f67bfe (patch)
treee8a69e41688a8ef68bfdf56d848c558512548900 /src/System
parent5d390922115b28c010410481e751cea06d5bb693 (diff)
~ Add more JSON instances.
Diffstat (limited to 'src/System')
-rw-r--r--src/System/Torrent/Storage.hs9
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--
202validateStorage :: Storage -> IO ()
203validateStorage st = undefined -- (`validatePiece` st) [0..pieceCount st]
204
196{----------------------------------------------------------------------- 205{-----------------------------------------------------------------------
197 Internal 206 Internal
198-----------------------------------------------------------------------} 207-----------------------------------------------------------------------}