store: CreateStore -> NewStore

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-19 14:44:39 -07:00
parent 71a5fd944a
commit 2ff9679938
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func (s *Discovery) Initialize(uris string, heartbeat time.Duration, ttl time.Du
// Creates a new store, will ignore options given // Creates a new store, will ignore options given
// if not supported by the chosen store // if not supported by the chosen store
s.store, err = store.CreateStore( s.store, err = store.NewStore(
s.backend, s.backend,
addrs, addrs,
&store.Config{ &store.Config{

View File

@ -131,7 +131,7 @@ var (
) )
// CreateStore creates a an instance of store // 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 { if init, exists := initializers[backend]; exists {
log.WithFields(log.Fields{"backend": backend}).Debug("Initializing store service") log.WithFields(log.Fields{"backend": backend}).Debug("Initializing store service")
return init(addrs, options) return init(addrs, options)