|
@ -47,6 +47,7 @@ func NewEtcdSequencer(etcdUrls string, metaFolder string) (*EtcdSequencer, error |
|
|
if nil != err { |
|
|
if nil != err { |
|
|
return nil, fmt.Errorf("open sequence file fialed, %v", err) |
|
|
return nil, fmt.Errorf("open sequence file fialed, %v", err) |
|
|
} |
|
|
} |
|
|
|
|
|
defer file.Close() |
|
|
|
|
|
|
|
|
cli, err := client.New(client.Config{ |
|
|
cli, err := client.New(client.Config{ |
|
|
Endpoints: strings.Split(etcdUrls, ","), |
|
|
Endpoints: strings.Split(etcdUrls, ","), |
|
|