MCPcopy Create free account
hub / github.com/cortexproject/cortex / resetZoneMap

Function resetZoneMap

pkg/ring/util.go:117–127  ·  view source on GitHub ↗
(zones map[string]int)

Source from the content-addressed store, hash-verified

115}
116
117func resetZoneMap(zones map[string]int) map[string]int {
118 if zones == nil {
119 return make(map[string]int, GetZoneSize)
120 }
121
122 for key := range zones {
123 delete(zones, key)
124 }
125
126 return zones
127}
128
129// getZones return the list zones from the provided tokens. The returned list
130// is guaranteed to be sorted.

Callers 3

GetMethod · 0.85
TestResetZoneMapFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestResetZoneMapFunction · 0.68