MCPcopy
hub / github.com/grafana/dskit / maxPartitionID

Method maxPartitionID

ring/partition_ring_model.go:169–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (m *PartitionRingDesc) maxPartitionID() int32 {
170 var max int32 = -1
171 for id := range m.Partitions {
172 if id > max {
173 max = id
174 }
175 }
176 return max
177}
178
179// WithPartitions returns a new PartitionRingDesc with only the specified partitions and their owners included.
180func (m *PartitionRingDesc) WithPartitions(partitions map[int32]struct{}) PartitionRingDesc {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected