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

Method Validate

pkg/chunk/cache/fifo_cache.go:49–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (cfg *FifoCacheConfig) Validate() error {
50 _, err := parsebytes(cfg.MaxSizeBytes)
51 return err
52}
53
54func parsebytes(s string) (uint64, error) {
55 if len(s) == 0 {

Callers

nothing calls this directly

Calls 1

parsebytesFunction · 0.85

Tested by

no test coverage detected