summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker/RPC/Message.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-03 18:24:28 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-03 18:24:28 +0400
commit6228854ace1685d9e85ad939a1344a306376f96f (patch)
treee347b6da29a183f28434de80cf523bf0862d5045 /src/Network/BitTorrent/Tracker/RPC/Message.hs
parentac8cd57442c970aa76e30d5f48dcb5c5cefe0adf (diff)
Minor changes
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC/Message.hs')
-rw-r--r--src/Network/BitTorrent/Tracker/RPC/Message.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC/Message.hs b/src/Network/BitTorrent/Tracker/RPC/Message.hs
index 4a5aa789..26e57760 100644
--- a/src/Network/BitTorrent/Tracker/RPC/Message.hs
+++ b/src/Network/BitTorrent/Tracker/RPC/Message.hs
@@ -227,7 +227,7 @@ instance QueryValueLike Int where
227instance QueryLike AnnounceQuery where 227instance QueryLike AnnounceQuery where
228 toQuery AnnounceQuery {..} = 228 toQuery AnnounceQuery {..} =
229 toQuery reqProgress ++ 229 toQuery reqProgress ++
230 [ ("info_hash", toQueryValue reqInfoHash) 230 [ ("info_hash", toQueryValue reqInfoHash) -- TODO use 'paramName'
231 , ("peer_id" , toQueryValue reqPeerId) 231 , ("peer_id" , toQueryValue reqPeerId)
232 , ("port" , toQueryValue reqPort) 232 , ("port" , toQueryValue reqPort)
233 , ("ip" , toQueryValue reqIP) 233 , ("ip" , toQueryValue reqIP)
@@ -376,7 +376,7 @@ instance Default AnnounceQueryExt where
376 376
377instance QueryLike AnnounceQueryExt where 377instance QueryLike AnnounceQueryExt where
378 toQuery AnnounceQueryExt {..} = 378 toQuery AnnounceQueryExt {..} =
379 [ ("compact", toQueryFlag <$> extCompact) 379 [ ("compact", toQueryFlag <$> extCompact) -- TODO use 'paramName'
380 , ("no_peer_id", toQueryFlag <$> extNoPeerId) 380 , ("no_peer_id", toQueryFlag <$> extNoPeerId)
381 ] 381 ]
382 where 382 where