summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAlexander Neumann <alexander@bumpern.de>2016-01-23 13:13:05 +0100
committerAlexander Neumann <alexander@bumpern.de>2016-01-23 13:13:05 +0100
commit8b7bf8691d609e5d08bb6fdf8f1f32977d784ca4 (patch)
treec639fd84a2aecffff642f25571e6dd042cb6ae62 /cmd
parentd3a6e2a9915f48aa80208ed205b77a8097fa9253 (diff)
backend: Remove Get()
This is the first commit that removes the (redundant) Get() method of the backend interface. Get(x, y) is equivalent to GetReader(x, y, 0, 0).
Diffstat (limited to 'cmd')
-rw-r--r--cmd/restic/cmd_cat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/restic/cmd_cat.go b/cmd/restic/cmd_cat.go
index c8d7bffd8..2106fa306 100644
--- a/cmd/restic/cmd_cat.go
+++ b/cmd/restic/cmd_cat.go
@@ -101,7 +101,7 @@ func (cmd CmdCat) Execute(args []string) error {
return nil
case "key":
- rd, err := repo.Backend().Get(backend.Key, id.String())
+ rd, err := repo.Backend().GetReader(backend.Key, id.String(), 0, 0)
if err != nil {
return err
}
@@ -153,7 +153,7 @@ func (cmd CmdCat) Execute(args []string) error {
switch tpe {
case "pack":
- rd, err := repo.Backend().Get(backend.Data, id.String())
+ rd, err := repo.Backend().GetReader(backend.Data, id.String(), 0, 0)
if err != nil {
return err
}