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

Function mergeStates

services/manager_test.go:262–268  ·  view source on GitHub ↗
(m map[State][]Service, states ...State)

Source from the content-addressed store, hash-verified

260}
261
262func mergeStates(m map[State][]Service, states ...State) []Service {
263 result := []Service(nil)
264 for _, s := range states {
265 result = append(result, m[s]...)
266 }
267 return result
268}
269
270func equalStatesMap(t *testing.T, m1, m2 map[State][]Service) {
271 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected