summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Session
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-26 08:00:16 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-26 08:00:16 +0400
commit8526ebaa230d98f70654e6bcfc64dcd511712f7b (patch)
tree0e8d3b10dd400bb982cffb574c5287a6d9351042 /src/Network/BitTorrent/Exchange/Session
parent1c38e5857764fe2ab8cb5ec55b31f13239278599 (diff)
Minor refactoring
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Session')
-rw-r--r--src/Network/BitTorrent/Exchange/Session/Metadata.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Exchange/Session/Metadata.hs b/src/Network/BitTorrent/Exchange/Session/Metadata.hs
index 02c2269f..79fd03b0 100644
--- a/src/Network/BitTorrent/Exchange/Session/Metadata.hs
+++ b/src/Network/BitTorrent/Exchange/Session/Metadata.hs
@@ -1,14 +1,14 @@
1{-# LANGUAGE TemplateHaskell #-} 1{-# LANGUAGE TemplateHaskell #-}
2module Network.BitTorrent.Exchange.Session.Metadata 2module Network.BitTorrent.Exchange.Session.Metadata
3 ( -- * Metadata transfer state 3 ( -- * Transfer state
4 Status 4 Status
5 , nullStatus 5 , nullStatus
6 6
7 -- * Metadata updates 7 -- * State updates
8 , Updates 8 , Updates
9 , runUpdates 9 , runUpdates
10 10
11 -- * Metadata piece control 11 -- * Piece transfer control
12 , scheduleBlock 12 , scheduleBlock
13 , resetPending 13 , resetPending
14 , cancelPending 14 , cancelPending
@@ -33,6 +33,7 @@ import Network.BitTorrent.Exchange.Block as Block
33import Network.BitTorrent.Exchange.Message as Message hiding (Status) 33import Network.BitTorrent.Exchange.Message as Message hiding (Status)
34 34
35 35
36-- | Current transfer status.
36data Status = Status 37data Status = Status
37 { _pending :: [(PeerAddr IP, PieceIx)] 38 { _pending :: [(PeerAddr IP, PieceIx)]
38 , _bucket :: Bucket 39 , _bucket :: Bucket