Skip to content

Commit 9ce1ab8

Browse files
rfyiamcoolndyakov
andauthored
fix: copy wrong list
Co-authored-by: Nedyalko Dyakov <[email protected]>
1 parent 791ca8d commit 9ce1ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (c *ringSharding) List() []*ringShard {
342342
c.mu.RLock()
343343
if !c.closed {
344344
list = make([]*ringShard, len(c.shards.list))
345-
copy(c.shards.list, list)
345+
copy(list, c.shards.list)
346346
}
347347
c.mu.RUnlock()
348348

0 commit comments

Comments
 (0)