MCPcopy
hub / github.com/redis/go-redis / String

Method String

pubsub.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (c *PubSub) String() string {
58 c.mu.Lock()
59 defer c.mu.Unlock()
60
61 channels := slices.Collect(maps.Keys(c.channels))
62 channels = append(channels, slices.Collect(maps.Keys(c.patterns))...)
63 channels = append(channels, slices.Collect(maps.Keys(c.schannels))...)
64 return fmt.Sprintf("PubSub(%s)", strings.Join(channels, ", "))
65}
66
67func (c *PubSub) connWithLock(ctx context.Context) (*pool.Conn, error) {
68 c.mu.Lock()

Callers

nothing calls this directly

Calls 2

CollectMethod · 0.80
KeysMethod · 0.65

Tested by

no test coverage detected