summaryrefslogtreecommitdiff
path: root/exsamples
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-13 07:36:48 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-13 07:36:48 +0400
commit38d8eb046cefce18a6689488994c05abf1223ffe (patch)
treea222a85d637759befe1f88ba0c775cc6f8a56181 /exsamples
parent9557004a2c916d475038f99cf26e5c36bbbae0a4 (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.hs4
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
13main :: IO () 13main :: IO ()
14main = do 14main = 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