Skip to content

Commit df2f219

Browse files
committed
Replace 'circle' with 'ring'.
1 parent a4cccca commit df2f219

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/ring/ring.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (x uint32s) Less(i, j int) bool { return x[i] < x[j] }
4949
func (x uint32s) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
5050

5151
// ErrEmptyRing is the error returned when trying to get an element when nothing has been added to hash.
52-
var ErrEmptyRing = errors.New("empty circle")
52+
var ErrEmptyRing = errors.New("empty ring")
5353

5454
// Config for a Ring
5555
type Config struct {
@@ -67,7 +67,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
6767
f.DurationVar(&cfg.HeartbeatTimeout, "ring.heartbeat-timeout", time.Minute, "The heartbeat timeout after which ingesters are skipped for reads/writes.")
6868
}
6969

70-
// Ring holds the information about the members of the consistent hash circle.
70+
// Ring holds the information about the members of the consistent hash ring.
7171
type Ring struct {
7272
KVClient KVClient
7373
done chan struct{}
@@ -219,7 +219,7 @@ func (r *Ring) IsHealthy(ingester *IngesterDesc) bool {
219219
return time.Now().Sub(time.Unix(ingester.Timestamp, 0)) <= r.heartbeatTimeout
220220
}
221221

222-
// GetAll returns all available ingesters in the circle.
222+
// GetAll returns all available ingesters in the ring.
223223
func (r *Ring) GetAll() []*IngesterDesc {
224224
r.mtx.RLock()
225225
defer r.mtx.RUnlock()

0 commit comments

Comments
 (0)