Skip to content

Commit 3fea6de

Browse files
committed
pkg/ring: fix data race
Signed-off-by: Robert Fratto <[email protected]>
1 parent 58b2a08 commit 3fea6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/lifecycler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ func (i *Lifecycler) updateConsul(ctx context.Context) error {
865865
}
866866

867867
// Re-sync token states for the current lifecycler if they've changed.
868-
ringDesc.SetIngesterTokens(i.ID, i.tokens)
868+
ringDesc.SetIngesterTokens(i.ID, i.getTokens())
869869
return ringDesc, true, nil
870870
})
871871

0 commit comments

Comments
 (0)