Revert "close opened file"

This reverts commit 2880160113.
This commit is contained in:
Chris Lu 2021-01-12 11:07:14 -08:00
parent 2880160113
commit 1c7faf1100

View File

@ -47,7 +47,6 @@ 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, ","),