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.
PubSub
1 parent 46d4b20 commit cb2cfb0Copy full SHA for cb2cfb0
pubsub.go
@@ -45,6 +45,9 @@ func (c *PubSub) init() {
45
}
46
47
func (c *PubSub) String() string {
48
+ c.mu.Lock()
49
+ defer c.mu.Unlock()
50
+
51
channels := mapKeys(c.channels)
52
channels = append(channels, mapKeys(c.patterns)...)
53
channels = append(channels, mapKeys(c.schannels)...)
0 commit comments