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

Method SetConfig

pkg/configs/db/timed.go:40–44  ·  view source on GitHub ↗
(ctx context.Context, userID string, cfg userconfig.Config)

Source from the content-addressed store, hash-verified

38}
39
40func (t timed) SetConfig(ctx context.Context, userID string, cfg userconfig.Config) error {
41 return instrument.CollectedRequest(ctx, "DB.SetConfig", databaseRequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
42 return t.d.SetConfig(ctx, userID, cfg) // Warning: this will produce an incorrect result if the configID ever overflows
43 })
44}
45
46func (t timed) GetAllConfigs(ctx context.Context) (map[string]userconfig.View, error) {
47 var cfgs map[string]userconfig.View

Callers

nothing calls this directly

Calls 1

SetConfigMethod · 0.65

Tested by

no test coverage detected