mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Rename Index interface to MasterIndex
The interface is now only implemented by repository.MasterIndex.
This commit is contained in:
@@ -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.
|
||||
|
@@ -16,7 +16,7 @@ import (
|
||||
var errTest = errors.New("test error")
|
||||
|
||||
type saveFail struct {
|
||||
idx restic.Index
|
||||
idx restic.MasterIndex
|
||||
cnt int32
|
||||
failAt int32
|
||||
}
|
||||
@@ -30,7 +30,7 @@ func (b *saveFail) SaveBlob(ctx context.Context, t restic.BlobType, buf []byte,
|
||||
return id, false, nil
|
||||
}
|
||||
|
||||
func (b *saveFail) Index() restic.Index {
|
||||
func (b *saveFail) Index() restic.MasterIndex {
|
||||
return b.idx
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user