diff options
Diffstat (limited to 'src/Network/BitTorrent/DHT/Query.hs')
-rw-r--r-- | src/Network/BitTorrent/DHT/Query.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/DHT/Query.hs b/src/Network/BitTorrent/DHT/Query.hs index f7657490..ac53bd91 100644 --- a/src/Network/BitTorrent/DHT/Query.hs +++ b/src/Network/BitTorrent/DHT/Query.hs | |||
@@ -53,7 +53,7 @@ import Data.Monoid | |||
53 | import Data.Text as T | 53 | import Data.Text as T |
54 | import Network | 54 | import Network |
55 | import Text.PrettyPrint as PP hiding ((<>), ($$)) | 55 | import Text.PrettyPrint as PP hiding ((<>), ($$)) |
56 | import Text.PrettyPrint.Class | 56 | import Text.PrettyPrint.HughesPJClass hiding ((<>),($$)) |
57 | 57 | ||
58 | import Network.KRPC hiding (Options, def) | 58 | import Network.KRPC hiding (Options, def) |
59 | import Data.Torrent | 59 | import Data.Torrent |
@@ -132,7 +132,7 @@ getPeersQ topic NodeInfo {..} = do | |||
132 | GotPeers {..} <- GetPeers topic <@> nodeAddr | 132 | GotPeers {..} <- GetPeers topic <@> nodeAddr |
133 | let dist = distance (toNodeId topic) nodeId | 133 | let dist = distance (toNodeId topic) nodeId |
134 | $(logInfoS) "getPeersQ" $ T.pack | 134 | $(logInfoS) "getPeersQ" $ T.pack |
135 | $ "distance: " <> render (pretty dist) <> " , result: " | 135 | $ "distance: " <> render (pPrint dist) <> " , result: " |
136 | <> case peers of { Left _ -> "NODES"; Right _ -> "PEERS" } | 136 | <> case peers of { Left _ -> "NODES"; Right _ -> "PEERS" } |
137 | return peers | 137 | return peers |
138 | 138 | ||