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.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent.hs b/src/Network/BitTorrent.hs
index b6e2eadf..95a4c4e3 100644
--- a/src/Network/BitTorrent.hs
+++ b/src/Network/BitTorrent.hs
@@ -102,7 +102,7 @@ defaultClient = newClient defaultThreadCount defaultExtensions
102-- thus we can obtain an unified interface 102-- thus we can obtain an unified interface
103 103
104discover :: SwarmSession -> P2P () -> IO () 104discover :: SwarmSession -> P2P () -> IO ()
105discover swarm action = do 105discover swarm action = {-# SCC discover #-} do
106 port <- forkListener (error "discover") 106 port <- forkListener (error "discover")
107 107
108 let conn = TConnection (tAnnounce (torrentMeta swarm)) 108 let conn = TConnection (tAnnounce (torrentMeta swarm))
@@ -134,7 +134,7 @@ discover swarm action = do
134 134
135-- | Default P2P action. 135-- | Default P2P action.
136exchange :: Storage -> P2P () 136exchange :: Storage -> P2P ()
137exchange storage = awaitEvent >>= handler 137exchange storage = {-# SCC exchange #-} (awaitEvent >>= handler)
138 where 138 where
139 handler (Available bf) = do 139 handler (Available bf) = do
140 liftIO (print (completeness bf)) 140 liftIO (print (completeness bf))