mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
1aaabfee2d
Instead of relying on `labels.Hash()`, which may change, have the caller pass in a shard function if required. For most purposes `tsdb.Options.ShardFunc` is used, but the compactor may be created independently so `NewLeveledCompactorWithChunkSize` also takes a shard function parameter. Regular Prometheus, which does not use block sharding, will have this parameter as nil. Signed-off-by: Bryan Boreham <bjboreham@gmail.com> |
||
---|---|---|
.. | ||
main.go |