diff options
Diffstat (limited to 'dht/src/Network/Tox/TCP.hs')
-rw-r--r-- | dht/src/Network/Tox/TCP.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dht/src/Network/Tox/TCP.hs b/dht/src/Network/Tox/TCP.hs index 0850ce51..385da35b 100644 --- a/dht/src/Network/Tox/TCP.hs +++ b/dht/src/Network/Tox/TCP.hs | |||
@@ -319,8 +319,8 @@ type RelayCache = TCPCache (SessionProtocol (SessionData,RelayPacket) RelayPacke | |||
319 | -- defaults are 'id' and 'tryPutMVar'. The resulting customized table state | 319 | -- defaults are 'id' and 'tryPutMVar'. The resulting customized table state |
320 | -- will be returned to the caller along with the new client. | 320 | -- will be returned to the caller along with the new client. |
321 | newClient :: TransportCrypto | 321 | newClient :: TransportCrypto |
322 | -> ((QR.Result (Bool,RelayPacket) -> IO ()) -> a) -- ^ store mvar for relay query | 322 | -> ((Nonce8 -> QR.Result (Bool,RelayPacket) -> IO ()) -> a) -- ^ store mvar for relay query |
323 | -> (a -> RelayPacket -> IO void) -- ^ load mvar for relay query | 323 | -> (a -> Nonce8 -> RelayPacket -> IO void) -- ^ load mvar for relay query |
324 | -> (SockAddr -> Nonce8 -> IO (Maybe (OnionDestination RouteId))) -- ^ lookup sender of onion query | 324 | -> (SockAddr -> Nonce8 -> IO (Maybe (OnionDestination RouteId))) -- ^ lookup sender of onion query |
325 | -> (UDP.NodeInfo -> RouteId -> IO (Maybe OnionRoute)) -- ^ lookup OnionRoute by id | 325 | -> (UDP.NodeInfo -> RouteId -> IO (Maybe OnionRoute)) -- ^ lookup OnionRoute by id |
326 | -> IO ( ( TVar (ChaChaDRG, Data.Word64Map.Word64Map a) | 326 | -> IO ( ( TVar (ChaChaDRG, Data.Word64Map.Word64Map a) |
@@ -361,7 +361,7 @@ newClient crypto store load lookupSender getRoute = do | |||
361 | } | 361 | } |
362 | , tableMethods = transactionMethods' | 362 | , tableMethods = transactionMethods' |
363 | store | 363 | store |
364 | (\x -> mapM_ (load x . snd)) | 364 | (\qid x -> mapM_ (load qid x . snd)) |
365 | (contramap (\(Nonce8 w64) -> w64) w64MapMethods) | 365 | (contramap (\(Nonce8 w64) -> w64) w64MapMethods) |
366 | $ first (either error Nonce8 . decode) . randomBytesGenerate 8 | 366 | $ first (either error Nonce8 . decode) . randomBytesGenerate 8 |
367 | } | 367 | } |