Len returns the current number of shards in the ring.
()
| 670 | |
| 671 | // Len returns the current number of shards in the ring. |
| 672 | func (c *Ring) Len() int { |
| 673 | return c.sharding.Len() |
| 674 | } |
| 675 | |
| 676 | // Subscribe subscribes the client to the specified channels. |
| 677 | func (c *Ring) Subscribe(ctx context.Context, channels ...string) *PubSub { |