add some comment

pull/61/head
Minh Doan 6 years ago
parent 5eeca78124
commit 8d1d5e46b4
  1. 1
      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 {

Loading…
Cancel
Save