Skip to content

Commit

Permalink
change an inaccurate comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zeebo committed Mar 30, 2019
1 parent cbefaeb commit 96a01ee
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tsdb/tsm1/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ type ring struct {
partitions [numPartitions]*partition
}

// newring returns a new ring initialised with n partitions. n must always be a
// power of 2, and for performance reasons should be larger than the number of
// cores on the host. The supported set of values for n is:
//
// {1, 2, 4, 8, 16, 32, 64, 128, 256}.
//
// newring returns a new ring initialised with numPartitions partitions.
func newRing() *ring {
r := new(ring)
for i := 0; i < len(r.partitions); i++ {
Expand Down

0 comments on commit 96a01ee

Please sign in to comment.