summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Network/BitTorrent/DHT/Routing.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs
index 81624b2a..ba1f6799 100644
--- a/src/Network/BitTorrent/DHT/Routing.hs
+++ b/src/Network/BitTorrent/DHT/Routing.hs
@@ -423,7 +423,7 @@ splitTip nid n i bucket
423 | testIdBit nid i = (One zeros (Tip nid (pred n) ones)) 423 | testIdBit nid i = (One zeros (Tip nid (pred n) ones))
424 | otherwise = (Zero (Tip nid (pred n) zeros) ones) 424 | otherwise = (Zero (Tip nid (pred n) zeros) ones)
425 where 425 where
426 (zeros, ones) = split i bucket 426 (ones, zeros) = split i bucket
427 427
428-- | Used in each query. 428-- | Used in each query.
429-- 429--
@@ -442,7 +442,7 @@ insert info @ NodeInfo {..} = go (0 :: BitIx)
442 go i (Tip nid n bucket) 442 go i (Tip nid n bucket)
443 | n == 0 = Tip nid n <$> insertNode info bucket 443 | n == 0 = Tip nid n <$> insertNode info bucket
444 | otherwise = Tip nid n <$> insertNode info bucket 444 | otherwise = Tip nid n <$> insertNode info bucket
445 <|> go (succ i) (splitTip nid n i bucket) 445 <|> go i (splitTip nid n i bucket)
446 446
447{----------------------------------------------------------------------- 447{-----------------------------------------------------------------------
448-- Conversion 448-- Conversion