We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618bb6a commit 0946e76Copy full SHA for 0946e76
channels/set.go
@@ -38,15 +38,14 @@ type ID struct {
38
}
39
40
func (c ID) String() string {
41
- return c.serialization
+ return strconv.FormatUint(uint64(c.CollectionID), 10) + "." + base.UserDataPrefix + c.Name + base.UserDataSuffix
42
43
44
// NewID returns a new ChannelID
45
func NewID(channelName string, collectionID uint32) ID {
46
return ID{
47
- Name: channelName,
48
- CollectionID: collectionID,
49
- serialization: strconv.FormatUint(uint64(collectionID), 10) + "." + base.UserDataPrefix + channelName + base.UserDataSuffix,
+ Name: channelName,
+ CollectionID: collectionID,
50
51
52
0 commit comments