mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
tsdb: Use PartitionedDB constructor
This commit is contained in:
parent
bc20d93f0a
commit
304cae9928
|
@ -11,12 +11,12 @@ import (
|
|||
|
||||
// adapter implements a storage.Storage around TSDB.
|
||||
type adapter struct {
|
||||
db *tsdb.DB
|
||||
db *tsdb.PartitionedDB
|
||||
}
|
||||
|
||||
// Open returns a new storage backed by a tsdb database.
|
||||
func Open(path string) (storage.Storage, error) {
|
||||
db, err := tsdb.Open(path, nil, nil)
|
||||
db, err := tsdb.OpenPartitioned(path, 1, nil, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue