summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/MainlineDHT.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/MainlineDHT.hs')
-rw-r--r--src/Network/BitTorrent/MainlineDHT.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Network/BitTorrent/MainlineDHT.hs b/src/Network/BitTorrent/MainlineDHT.hs
index 573efcba..a29657af 100644
--- a/src/Network/BitTorrent/MainlineDHT.hs
+++ b/src/Network/BitTorrent/MainlineDHT.hs
@@ -563,11 +563,11 @@ newClient swarms addr = do
563 -- have a client to send queries with. 563 -- have a client to send queries with.
564 let nullPing = const $ return False 564 let nullPing = const $ return False
565 nullSearch = mainlineSearch $ \_ _ -> return Nothing 565 nullSearch = mainlineSearch $ \_ _ -> return Nothing
566 refresher4 <- newBucketRefresher tentative_info nullSearch nullPing 566 tbl4 <- newTVar $ R.nullTable (comparing nodeId) (\s -> hashWithSalt s . nodeId) tentative_info R.defaultBucketCount
567 refresher6 <- newBucketRefresher tentative_info6 nullSearch nullPing 567 refresher4 <- newBucketRefresher tbl4 nullSearch nullPing
568 let tbl4 = refreshBuckets refresher4 568 tbl6 <- newTVar $ R.nullTable (comparing nodeId) (\s -> hashWithSalt s . nodeId) tentative_info6 R.defaultBucketCount
569 tbl6 = refreshBuckets refresher6 569 refresher6 <- newBucketRefresher tbl6 nullSearch nullPing
570 updateIPVote tblvar addrvar a = do 570 let updateIPVote tblvar addrvar a = do
571 bkts <- readTVar tblvar 571 bkts <- readTVar tblvar
572 case bep42 a (nodeId $ R.thisNode bkts) of 572 case bep42 a (nodeId $ R.thisNode bkts) of
573 Just nid -> do 573 Just nid -> do