summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/DHT/Query.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/DHT/Query.hs')
-rw-r--r--src/Network/BitTorrent/DHT/Query.hs4
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
53import Data.Text as T 53import Data.Text as T
54import Network 54import Network
55import Text.PrettyPrint as PP hiding ((<>), ($$)) 55import Text.PrettyPrint as PP hiding ((<>), ($$))
56import Text.PrettyPrint.Class 56import Text.PrettyPrint.HughesPJClass hiding ((<>),($$))
57 57
58import Network.KRPC hiding (Options, def) 58import Network.KRPC hiding (Options, def)
59import Data.Torrent 59import 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