Address PR feedback

This commit is contained in:
Kevin Parsons
2018-12-19 01:38:48 -08:00
parent cd4b2fefe9
commit 35e42dab22
3 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func NewEventDescriptor() *EventDescriptor {
// EventDescriptor, and field metadata). Only the lower 24 bits of this value
// are relevant.
func (ed *EventDescriptor) Identity() uint32 {
return (uint32(ed.version) << 16) & uint32(ed.id)
return (uint32(ed.version) << 16) | uint32(ed.id)
}
// SetIdentity sets the identity of the event. If the identity is not 0, it