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

Function MakeBuffersForGet

ring/util.go:109–114  ·  view source on GitHub ↗

MakeBuffersForGet returns buffers to use with Ring.Get().

()

Source from the content-addressed store, hash-verified

107
108// MakeBuffersForGet returns buffers to use with Ring.Get().
109func MakeBuffersForGet() (bufDescs []InstanceDesc, bufHosts, bufZones []string) {
110 bufDescs = make([]InstanceDesc, 0, GetBufferSize)
111 bufHosts = make([]string, 0, GetBufferSize)
112 bufZones = make([]string, 0, GetBufferSize)
113 return
114}
115
116// getZones return the list zones from the provided tokens. The returned list
117// is guaranteed to be sorted.

Calls

no outgoing calls