diff options
author | joe <joe@jerkface.net> | 2018-06-09 01:31:23 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-09 01:32:08 -0400 |
commit | fb0c6758ec415c5cda5cc7c182e1f83906f365fb (patch) | |
tree | c07aa47ca461d90199b63af230f4433da9827935 /examples/dhtd.hs | |
parent | fa15dabe75703516c7bbb54fdba2a13ae6c6e9cc (diff) |
Expire old tox key announcements after 5 minutes.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index b845f9df..369650f9 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -1165,7 +1165,7 @@ clientSession s@Session{..} sock cnum h = do | |||
1165 | keydb <- atomically $ readTVar toxkeys | 1165 | keydb <- atomically $ readTVar toxkeys |
1166 | now <- getPOSIXTime | 1166 | now <- getPOSIXTime |
1167 | let entries = map mkentry $ PSQ.toList (Tox.keyByAge keydb) | 1167 | let entries = map mkentry $ PSQ.toList (Tox.keyByAge keydb) |
1168 | mkentry (k :-> Down tm) = [ show cnt, show k, show (now - tm) ] | 1168 | mkentry (k :-> tm) = [ show cnt, show k, show (now - tm) ] |
1169 | where Just (_,(cnt,_)) = MM.lookup' k (Tox.keyAssoc keydb) | 1169 | where Just (_,(cnt,_)) = MM.lookup' k (Tox.keyAssoc keydb) |
1170 | hPutClient h $ showColumns entries | 1170 | hPutClient h $ showColumns entries |
1171 | 1171 | ||