swarm/shed: add metrics to each shed db (#18277)

* swarm/shed: add metrics to each shed db

* swarm/shed: push metrics prefix up

* swarm/shed: rename prefix to metricsPrefix

* swarm/shed: unexport Meter, remove Mutex for quit channel
This commit is contained in:
Anton Evangelatov
2018-12-12 07:51:29 +01:00
committed by Viktor Trón
parent 1e190a3b1c
commit ebbf3dfafb
3 changed files with 206 additions and 7 deletions

View File

@ -52,7 +52,7 @@ type Store struct {
// and possible conflicts with schema from existing database is checked
// automatically.
func New(path string) (s *Store, err error) {
db, err := shed.NewDB(path)
db, err := shed.NewDB(path, "")
if err != nil {
return nil, err
}