summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent.hs')
-rw-r--r--src/Network/BitTorrent.hs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Network/BitTorrent.hs b/src/Network/BitTorrent.hs
index 06df77dd..acb3700c 100644
--- a/src/Network/BitTorrent.hs
+++ b/src/Network/BitTorrent.hs
@@ -37,13 +37,6 @@ module Network.BitTorrent
37 , SessionCount 37 , SessionCount
38 , getSessionCount 38 , getSessionCount
39 39
40 -- * Storage
41 , Storage
42 , ppStorage
43
44 , bindTo
45 , unbind
46
47 -- * Discovery 40 -- * Discovery
48 , discover 41 , discover
49 , exchange 42 , exchange
@@ -132,7 +125,7 @@ addTorrent clientSession loc @ TorrentLoc {..} = do
132-- when (bf is not full) 125-- when (bf is not full)
133 126
134 swarm <- newLeecher clientSession torrent 127 swarm <- newLeecher clientSession torrent
135 storage <- swarm `bindTo` dataDirPath 128 storage <- openStorage (torrentMeta swarm) dataDirPath
136 forkIO $ discover swarm $ do 129 forkIO $ discover swarm $ do
137 liftIO $ putStrLn "connected to peer" 130 liftIO $ putStrLn "connected to peer"
138 forever $ do 131 forever $ do