mirror of
https://github.com/restic/restic.git
synced 2025-10-27 14:28:54 +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:
@@ -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