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

Function getOrCreateData

kv/memberlist/memberlist_client_test.go:2027–2035  ·  view source on GitHub ↗
(in interface{})

Source from the content-addressed store, hash-verified

2025}
2026
2027func getOrCreateData(in interface{}) *data {
2028 // Modify value that was passed as a parameter.
2029 // Client takes care of concurrent modifications.
2030 r, ok := in.(*data)
2031 if !ok || r == nil {
2032 return &data{Members: map[string]member{}}
2033 }
2034 return r
2035}
2036
2037type testLogger struct {
2038}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected