summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-07-13 22:10:23 +0400
committerSam T <pxqr.sta@gmail.com>2013-07-13 22:10:23 +0400
commit07fb54d4844a7667dcef10527d0d3c010f851768 (patch)
tree5c981334f35cb12ab972ca43851af9fd88ccde2b /src/Network/BitTorrent.hs
parentad4d96b1850fea7d6f40a48a085ed8d18ba4fd8a (diff)
~ Remove import Internal from Storage.
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