mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
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).
This commit is contained in:
1 parent
d3a6e2a991
commit
8b7bf8691d
12 files changed
+12
-105
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user