tsdb: Use PartitionedDB constructor

This commit is contained in:
Fabian Reinartz 2017-01-06 12:34:54 +01:00
parent bc20d93f0a
commit 304cae9928

View file

@ -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
}