renamed GetType() to Type(), fixed iterator tests

This commit is contained in:
= 2014-12-01 13:36:32 +01:00 committed by panamafrancis
parent 4bafc22f43
commit d545fc4b44
7 changed files with 9 additions and 7 deletions

View file

@ -98,7 +98,7 @@ type QuadStore interface {
// Get the type of QuadStore
//TODO replace this using reflection
GetType() string
Type() string
}
type Options map[string]interface{}
@ -190,7 +190,7 @@ func InitQuadStore(name, dbpath string, opts Options) error {
}
func NewQuadStoreForRequest(qs QuadStore, opts Options) (QuadStore, error) {
r, registered := storeRegistry[qs.GetType()]
r, registered := storeRegistry[qs.Type()]
if registered {
return r.newForRequestFunc(qs, opts)
}