mirror of https://github.com/restic/restic.git
restic/repository: remove Backend() method
This commit is contained in:
parent
673496b091
commit
291c9677de
|
@ -579,11 +579,6 @@ func (r *Repository) flushPacks(ctx context.Context) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backend returns the backend for the repository.
|
|
||||||
func (r *Repository) Backend() backend.Backend {
|
|
||||||
return r.be
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *Repository) Connections() uint {
|
func (r *Repository) Connections() uint {
|
||||||
return r.be.Connections()
|
return r.be.Connections()
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,9 +16,6 @@ var ErrInvalidData = errors.New("invalid data returned")
|
||||||
// Repository stores data in a backend. It provides high-level functions and
|
// Repository stores data in a backend. It provides high-level functions and
|
||||||
// transparently encrypts/decrypts data.
|
// transparently encrypts/decrypts data.
|
||||||
type Repository interface {
|
type Repository interface {
|
||||||
|
|
||||||
// Backend returns the backend used by the repository
|
|
||||||
Backend() backend.Backend
|
|
||||||
// Connections returns the maximum number of concurrent backend operations
|
// Connections returns the maximum number of concurrent backend operations
|
||||||
Connections() uint
|
Connections() uint
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue