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 d39c158 commit 944b067Copy full SHA for 944b067
ring.go
@@ -349,6 +349,8 @@ func (c *ringSharding) newRingShards(
349
return
350
}
351
352
+// Warning: External exposure of `c.shards.list` may cause data races.
353
+// So keep internal or implement deep copy if exposed.
354
func (c *ringSharding) List() []*ringShard {
355
c.mu.RLock()
356
defer c.mu.RUnlock()
0 commit comments