mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
repository: inline index.encode
This commit is contained in:
parent
fe5a8e137a
commit
e4f20dea61
@ -409,13 +409,6 @@ func (idx *Index) Encode(w io.Writer) error {
|
|||||||
idx.m.Lock()
|
idx.m.Lock()
|
||||||
defer idx.m.Unlock()
|
defer idx.m.Unlock()
|
||||||
|
|
||||||
return idx.encode(w)
|
|
||||||
}
|
|
||||||
|
|
||||||
// encode writes the JSON serialization of the index to the writer w.
|
|
||||||
func (idx *Index) encode(w io.Writer) error {
|
|
||||||
debug.Log("encoding index")
|
|
||||||
|
|
||||||
list, err := idx.generatePackList()
|
list, err := idx.generatePackList()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user