decouple from viper for filer store

This commit is contained in:
Chris Lu
2018-06-17 13:01:57 -07:00
parent 0467195f07
commit eb2acd11c2
8 changed files with 39 additions and 35 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"github.com/chrislusf/seaweedfs/weed/filer2"
"github.com/google/btree"
"github.com/spf13/viper"
"strings"
)
@@ -28,7 +27,7 @@ func (store *MemDbStore) GetName() string {
return "memory"
}
func (store *MemDbStore) Initialize(viper *viper.Viper) (err error) {
func (store *MemDbStore) Initialize(configuration filer2.Configuration) (err error) {
store.tree = btree.New(8)
return nil
}