summaryrefslogtreecommitdiff
path: root/dht/src/Network/Tox
diff options
context:
space:
mode:
Diffstat (limited to 'dht/src/Network/Tox')
-rw-r--r--dht/src/Network/Tox/Onion/Handlers.hs1
-rw-r--r--dht/src/Network/Tox/TCP.hs2
2 files changed, 2 insertions, 1 deletions
diff --git a/dht/src/Network/Tox/Onion/Handlers.hs b/dht/src/Network/Tox/Onion/Handlers.hs
index f44dd79c..25713aa1 100644
--- a/dht/src/Network/Tox/Onion/Handlers.hs
+++ b/dht/src/Network/Tox/Onion/Handlers.hs
@@ -181,6 +181,7 @@ forkAnnouncedKeysGC db = forkIO $ do
181 fix $ \loop -> do 181 fix $ \loop -> do
182 cutoff <- getPOSIXTime 182 cutoff <- getPOSIXTime
183 threadDelay 300000000 -- 300 seconds 183 threadDelay 300000000 -- 300 seconds
184 dput XAnnounce "(gc:toxids) Garbage collecting announced toxids."
184 join $ atomically $ do 185 join $ atomically $ do
185 fix $ \gc -> do 186 fix $ \gc -> do
186 keys <- readTVar db 187 keys <- readTVar db
diff --git a/dht/src/Network/Tox/TCP.hs b/dht/src/Network/Tox/TCP.hs
index 5dfb8382..d0d67f25 100644
--- a/dht/src/Network/Tox/TCP.hs
+++ b/dht/src/Network/Tox/TCP.hs
@@ -304,7 +304,7 @@ newClient crypto store load = do
304 PingPacket -> trace ("tcp-received-ping") $ Just MethodHandler 304 PingPacket -> trace ("tcp-received-ping") $ Just MethodHandler
305 { methodParse = \case (_,RelayPing n8) -> Right () 305 { methodParse = \case (_,RelayPing n8) -> Right ()
306 _ -> trace ("tcp-non-ping") $ Left "TCP: Non-ping?" 306 _ -> trace ("tcp-non-ping") $ Left "TCP: Non-ping?"
307 , methodSerialize = \n8 src dst () -> trace ("tcp-made-pong-"++show n8) (False, RelayPong n8) 307 , methodSerialize = \n8 src dst () -> {- trace ("tcp-made-pong-"++show n8) -} (False, RelayPong n8)
308 , methodAction = \src () -> dput XTCP $ "TCP pinged by "++show src 308 , methodAction = \src () -> dput XTCP $ "TCP pinged by "++show src
309 } 309 }
310 w -> trace ("tcp-lookupHandler: "++show w) $ Just NoReply 310 w -> trace ("tcp-lookupHandler: "++show w) $ Just NoReply