summaryrefslogtreecommitdiff
path: root/src/Network/Tox/NodeId.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox/NodeId.hs')
-rw-r--r--src/Network/Tox/NodeId.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs
index 56ddf03c..98be1e3a 100644
--- a/src/Network/Tox/NodeId.hs
+++ b/src/Network/Tox/NodeId.hs
@@ -335,6 +335,8 @@ instance Read NodeInfo where
335 return $ NodeInfo nid ip port 335 return $ NodeInfo nid ip port
336 336
337-- The Hashable instance depends only on the IP address and port number. 337-- The Hashable instance depends only on the IP address and port number.
338--
339-- TODO: Why is the node id excluded?
338instance Hashable NodeInfo where 340instance Hashable NodeInfo where
339 hashWithSalt s ni = hashWithSalt s (nodeIP ni , nodePort ni) 341 hashWithSalt s ni = hashWithSalt s (nodeIP ni , nodePort ni)
340 {-# INLINE hashWithSalt #-} 342 {-# INLINE hashWithSalt #-}