summaryrefslogtreecommitdiff
path: root/src/Network/Kademlia
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-06-28 16:14:26 -0400
committerJoe Crayne <joe@jerkface.net>2018-06-28 19:23:14 -0400
commit8ff122d2d381fc9b1dd5c16067fba19f89512261 (patch)
tree4ce94c3cf3a0ffb7cb99c43d7dadd59094f31105 /src/Network/Kademlia
parent4ab1de695cb484f7859cb5d1794da5ce6510c0c2 (diff)
Kademlia.Search: fork -> forkIO
Diffstat (limited to 'src/Network/Kademlia')
-rw-r--r--src/Network/Kademlia/Search.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Kademlia/Search.hs b/src/Network/Kademlia/Search.hs
index e13e0742..d3aaae28 100644
--- a/src/Network/Kademlia/Search.hs
+++ b/src/Network/Kademlia/Search.hs
@@ -199,7 +199,7 @@ search ::
199search sch buckets target result = do 199search sch buckets target result = do
200 let ns = R.kclosest (searchSpace sch) searchK target buckets 200 let ns = R.kclosest (searchSpace sch) searchK target buckets
201 st <- atomically $ newSearch sch target ns 201 st <- atomically $ newSearch sch target ns
202 fork $ searchLoop sch target result st 202 forkIO $ searchLoop sch target result st
203 return st 203 return st
204 204
205searchLoop :: ( Ord addr, Ord nid, Ord ni, Show nid, Hashable nid, Hashable ni ) 205searchLoop :: ( Ord addr, Ord nid, Ord ni, Show nid, Hashable nid, Hashable ni )