diff options
Diffstat (limited to 'src/Network/BitTorrent/Tracker')
-rw-r--r-- | src/Network/BitTorrent/Tracker/Protocol.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Tracker/Protocol.hs b/src/Network/BitTorrent/Tracker/Protocol.hs index d4f3da3c..52eb6c92 100644 --- a/src/Network/BitTorrent/Tracker/Protocol.hs +++ b/src/Network/BitTorrent/Tracker/Protocol.hs | |||
@@ -74,7 +74,7 @@ data TRequest = TRequest { -- TODO peer here -- TODO detach announce | |||
74 | -- ^ Hash of info part of the torrent usually obtained from | 74 | -- ^ Hash of info part of the torrent usually obtained from |
75 | -- 'Torrent'. | 75 | -- 'Torrent'. |
76 | 76 | ||
77 | , reqPeerID :: !PeerID | 77 | , reqPeerId :: !PeerId |
78 | -- ^ ID of the peer doing request. | 78 | -- ^ ID of the peer doing request. |
79 | 79 | ||
80 | , reqPort :: !PortNumber | 80 | , reqPort :: !PortNumber |
@@ -186,7 +186,7 @@ instance URLShow Event where | |||
186 | 186 | ||
187 | instance URLEncode TRequest where | 187 | instance URLEncode TRequest where |
188 | urlEncode req = mconcat | 188 | urlEncode req = mconcat |
189 | [ s "peer_id" %= reqPeerID req | 189 | [ s "peer_id" %= reqPeerId req |
190 | , s "port" %= reqPort req | 190 | , s "port" %= reqPort req |
191 | , s "uploaded" %= reqUploaded req | 191 | , s "uploaded" %= reqUploaded req |
192 | , s "downloaded" %= reqDownloaded req | 192 | , s "downloaded" %= reqDownloaded req |