renamed GetType() to Type(), fixed iterator tests
This commit is contained in:
parent
4bafc22f43
commit
d545fc4b44
7 changed files with 9 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue