add store to defaults (#1086)
This commit is contained in:
@@ -173,7 +173,7 @@ func (s *sqlStore) initDB() {
|
||||
}
|
||||
|
||||
// New returns a new micro Store backed by sql
|
||||
func New(opts ...store.Option) store.Store {
|
||||
func NewStore(opts ...store.Option) store.Store {
|
||||
var options store.Options
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
|
@@ -27,7 +27,7 @@ func TestSQL(t *testing.T) {
|
||||
}
|
||||
db.Close()
|
||||
|
||||
sqlStore := New(
|
||||
sqlStore := NewStore(
|
||||
store.Namespace("testsql"),
|
||||
store.Nodes(connection),
|
||||
)
|
||||
|
Reference in New Issue
Block a user