diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dhtd.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 68074e2b..c58b75e1 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -37,7 +37,7 @@ import Network.BitTorrent.DHT.Search | |||
37 | import Network.BitTorrent.DHT.Query | 37 | import Network.BitTorrent.DHT.Query |
38 | import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) | 38 | import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) |
39 | import Network.KRPC.Manager (QueryFailure(..)) | 39 | import Network.KRPC.Manager (QueryFailure(..)) |
40 | import Network.KRPC.Message (ReflectedIP(..)) | 40 | import Network.KRPC.Message (ReflectedIP(..),KMessageOf) |
41 | import qualified Network.BitTorrent.DHT.Routing as R | 41 | import qualified Network.BitTorrent.DHT.Routing as R |
42 | import Network.BitTorrent.DHT.Session | 42 | import Network.BitTorrent.DHT.Session |
43 | import Network.SocketLike | 43 | import Network.SocketLike |
@@ -71,7 +71,7 @@ showReport kvs = do | |||
71 | (k,v) <- kvs | 71 | (k,v) <- kvs |
72 | concat [ printf " %-*s" (colwidth+1) k, v, "\n" ] | 72 | concat [ printf " %-*s" (colwidth+1) k, v, "\n" ] |
73 | 73 | ||
74 | showEnry :: Show a => (NodeInfo a, t) -> [Char] | 74 | showEnry :: Show a => (NodeInfo KMessageOf a (), t) -> [Char] |
75 | showEnry (n,_) = intercalate " " | 75 | showEnry (n,_) = intercalate " " |
76 | [ show $ pPrint (nodeId n) | 76 | [ show $ pPrint (nodeId n) |
77 | , show $ nodeAddr n | 77 | , show $ nodeAddr n |