fix build after rebase
parent
8456169855
commit
914a9a1de6
|
@ -14,7 +14,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/influxdb/influxdb/meta"
|
"github.com/influxdb/influxdb/services/meta"
|
||||||
"github.com/influxdb/influxdb/services/snapshotter"
|
"github.com/influxdb/influxdb/services/snapshotter"
|
||||||
"github.com/influxdb/influxdb/tcp"
|
"github.com/influxdb/influxdb/tcp"
|
||||||
)
|
)
|
||||||
|
@ -295,13 +295,6 @@ func (cmd *Command) download(req *snapshotter.Request, path string) error {
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
// Create local file to write to.
|
|
||||||
f, err := os.Create(path)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("open temp file: %s", err)
|
|
||||||
}
|
|
||||||
defer f.Close()
|
|
||||||
|
|
||||||
// Write the request
|
// Write the request
|
||||||
if err := json.NewEncoder(conn).Encode(req); err != nil {
|
if err := json.NewEncoder(conn).Encode(req); err != nil {
|
||||||
return fmt.Errorf("encode snapshot request: %s", err)
|
return fmt.Errorf("encode snapshot request: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue