Rename Index interface to MasterIndex

The interface is now only implemented by repository.MasterIndex.
This commit is contained in:
Michael Eischer
2020-07-25 21:19:46 +02:00
parent 9d1fb94c6c
commit c847aace35
4 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ import (
// Saver allows saving a blob.
type Saver interface {
SaveBlob(ctx context.Context, t restic.BlobType, data []byte, id restic.ID, storeDuplicate bool) (restic.ID, bool, error)
Index() restic.Index
Index() restic.MasterIndex
}
// BlobSaver concurrently saves incoming blobs to the repo.