summaryrefslogtreecommitdiff
path: root/src/Network/DHT
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/DHT')
-rw-r--r--src/Network/DHT/Routing.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/DHT/Routing.hs b/src/Network/DHT/Routing.hs
index 1d1aa44b..5c6abe5d 100644
--- a/src/Network/DHT/Routing.hs
+++ b/src/Network/DHT/Routing.hs
@@ -253,12 +253,12 @@ insertBucket curTime (TryInsert info) bucket
253 guard (t < curTime - delta) 253 guard (t < curTime - delta)
254 return n 254 return n
255 -- All stale: 255 -- All stale:
256 -- map key $ PSQ.atMost (curTime - delta) $ bktNodes bucket 256 -- map key \$ PSQ.atMost (curTime - delta) $ bktNodes bucket
257 257
258 already_have = maybe False (const True) $ PSQ.lookup info (bktNodes bucket) 258 already_have = maybe False (const True) $ PSQ.lookup info (bktNodes bucket)
259 259
260 map_ns f = bucket { bktNodes = f (bktNodes bucket) } 260 map_ns f = bucket { bktNodes = f (bktNodes bucket) }
261 -- map_q f = bucket { bktQ = runIdentity $ f (bktQ bucket) } 261 -- map_q f = bucket { bktQ = runIdentity \$ f (bktQ bucket) }
262 262
263insertBucket curTime (PingResult bad_node got_response) bucket 263insertBucket curTime (PingResult bad_node got_response) bucket
264 = pure ([], Bucket (upd $ bktNodes bucket) popped) 264 = pure ([], Bucket (upd $ bktNodes bucket) popped)