Browse Source

close opened file

pull/1743/head
Chris Lu 4 years ago
parent
commit
2880160113
  1. 1
      weed/sequence/etcd_sequencer.go

1
weed/sequence/etcd_sequencer.go

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

Loading…
Cancel
Save