mirror of https://github.com/docker/docs.git
store: CreateStore -> NewStore
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
71a5fd944a
commit
2ff9679938
|
|
@ -49,7 +49,7 @@ func (s *Discovery) Initialize(uris string, heartbeat time.Duration, ttl time.Du
|
|||
|
||||
// Creates a new store, will ignore options given
|
||||
// if not supported by the chosen store
|
||||
s.store, err = store.CreateStore(
|
||||
s.store, err = store.NewStore(
|
||||
s.backend,
|
||||
addrs,
|
||||
&store.Config{
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ var (
|
|||
)
|
||||
|
||||
// CreateStore creates a an instance of store
|
||||
func CreateStore(backend Backend, addrs []string, options *Config) (Store, error) {
|
||||
func NewStore(backend Backend, addrs []string, options *Config) (Store, error) {
|
||||
if init, exists := initializers[backend]; exists {
|
||||
log.WithFields(log.Fields{"backend": backend}).Debug("Initializing store service")
|
||||
return init(addrs, options)
|
||||
|
|
|
|||
Loading…
Reference in New Issue