From 8d1d5e46b4edc8d1ef259669e4d0f0cce1c18fa2 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Thu, 30 Aug 2018 15:44:42 -0700 Subject: [PATCH] add some comment --- utils/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/utils.go b/utils/utils.go index c5e29503e..4097edf35 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -21,6 +21,7 @@ func ConvertFixedDataIntoByteArray(data interface{}) []byte { return buff.Bytes() } +// TODO(minhdoan): this is probably a hack, probably needs some strong non-collision hash. func GetUniqueIdFromPeer(peer p2p.Peer) uint16 { reg, err := regexp.Compile("[^0-9]+") if err != nil {