diff options
Diffstat (limited to 'src/Network/BitTorrent.hs')
-rw-r--r-- | src/Network/BitTorrent.hs | 4 |
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 | ||
104 | discover :: SwarmSession -> P2P () -> IO () | 104 | discover :: SwarmSession -> P2P () -> IO () |
105 | discover swarm action = do | 105 | discover 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. |
136 | exchange :: Storage -> P2P () | 136 | exchange :: Storage -> P2P () |
137 | exchange storage = awaitEvent >>= handler | 137 | exchange 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)) |