diff --git a/channels/set.go b/channels/set.go index 9e9b8f35dc..c98bbae1fc 100644 --- a/channels/set.go +++ b/channels/set.go @@ -32,21 +32,19 @@ const AllChannelWildcard = "*" // wildcard for 'all channels' // ID represents a single channel inside a collection type ID struct { - Name string // name of channel - CollectionID uint32 // collection it belongs to - serialization string // private method for logging and matching inside changeWaiter notification + Name string // name of channel + CollectionID uint32 // collection it belongs to } func (c ID) String() string { - return c.serialization + return strconv.FormatUint(uint64(c.CollectionID), 10) + "." + base.UserDataPrefix + c.Name + base.UserDataSuffix } // NewID returns a new ChannelID func NewID(channelName string, collectionID uint32) ID { return ID{ - Name: channelName, - CollectionID: collectionID, - serialization: strconv.FormatUint(uint64(collectionID), 10) + "." + base.UserDataPrefix + channelName + base.UserDataSuffix, + Name: channelName, + CollectionID: collectionID, } }