summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-03-18 17:30:22 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-03-18 17:30:22 +0400
commit70635487f448b30dfa6e49554e4ac660ed32ea81 (patch)
treebf4230647260d887de5c5b8886c611dfd9d60adf
parent59c957874de7e18fe9084eeddd25c6a08b8aa533 (diff)
Fix code style
-rw-r--r--src/Network/BitTorrent/Client/Handle.hs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs
index e7884caa..d68c57cc 100644
--- a/src/Network/BitTorrent/Client/Handle.hs
+++ b/src/Network/BitTorrent/Client/Handle.hs
@@ -78,9 +78,14 @@ openTorrent rootPath t @ Torrent {..} = do
78 allocHandle ih $ do 78 allocHandle ih $ do
79 c @ Client {..} <- getClient 79 c @ Client {..} <- getClient
80 tses <- liftIO $ Tracker.newSession ih (trackerList t) 80 tses <- liftIO $ Tracker.newSession ih (trackerList t)
81 eses <- liftIO $ Exchange.newSession clientLogger (externalAddr c) rootPath 81 eses <- liftIO $ Exchange.newSession clientLogger (externalAddr c)
82 tInfoDict 82 rootPath tInfoDict
83 return $ Handle ih (idPrivate tInfoDict) tses eses 83 return $ Handle
84 { topic = ih
85 , private = idPrivate tInfoDict
86 , trackers = tses
87 , exchange = eses
88 }
84 89
85-- | Use 'nullMagnet' to open handle from 'InfoHash'. 90-- | Use 'nullMagnet' to open handle from 'InfoHash'.
86openMagnet :: FilePath -> Magnet -> BitTorrent Handle 91openMagnet :: FilePath -> Magnet -> BitTorrent Handle