diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-30 20:26:18 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-30 20:26:18 +0400 |
commit | 8ecd0d15e202291324ed4f56ce3f31de420a0bda (patch) | |
tree | 9264ae6bf8043cecc52f13f43ab1e39b74686049 /src/Network/BitTorrent.hs | |
parent | d7b276585a4faccc7d78baafb7ea011f3135856a (diff) |
+ Add some SCC annotations.
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)) |