Merge branch 'master' of github.com:harmony-one/harmony

pull/78/head
Minh Doan 6 years ago
commit 5bd9b3ea2a
  1. 10
      proto/identity/identity.go

@ -26,10 +26,6 @@ type MessageType int
const ( const (
Register MessageType = iota Register MessageType = iota
Acknowledge Acknowledge
Leader
IDCKey
NodeInfo
Peers
) )
// Returns string name for the MessageType enum // Returns string name for the MessageType enum
@ -37,13 +33,9 @@ func (msgType MessageType) String() string {
names := [...]string{ names := [...]string{
"Register", "Register",
"Acknowledge", "Acknowledge",
"Leader",
"IDCKey",
"NodeInfo",
"Peers",
} }
if msgType < Register || msgType > Peers { if msgType < Register || msgType > Acknowledge {
return "Unknown" return "Unknown"
} }
return names[msgType] return names[msgType]

Loading…
Cancel
Save