diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-13 07:36:48 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-13 07:36:48 +0400 |
commit | 38d8eb046cefce18a6689488994c05abf1223ffe (patch) | |
tree | a222a85d637759befe1f88ba0c775cc6f8a56181 /exsamples | |
parent | 9557004a2c916d475038f99cf26e5c36bbbae0a4 (diff) |
+ Add defaultClient function.
This exposes problems with keepalives:
exsample: sendWakeup: resource exhausted (Resource temporarily
unavailable )
Diffstat (limited to 'exsamples')
-rw-r--r-- | exsamples/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exsamples/Main.hs b/exsamples/Main.hs index 2c879378..9ed311ae 100644 --- a/exsamples/Main.hs +++ b/exsamples/Main.hs | |||
@@ -12,10 +12,10 @@ import Data.IORef | |||
12 | 12 | ||
13 | main :: IO () | 13 | main :: IO () |
14 | main = do | 14 | main = do |
15 | [path] <- getArgs | 15 | [path] <- getArgs |
16 | torrent <- fromFile path | 16 | torrent <- fromFile path |
17 | 17 | ||
18 | client <- newClient 1 [] | 18 | client <- defaultClient |
19 | swarm <- newLeacher client torrent | 19 | swarm <- newLeacher client torrent |
20 | 20 | ||
21 | discover swarm $ do | 21 | discover swarm $ do |