2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-11 02:08:44 +00:00

Update comment now that question was answered

This commit is contained in:
Matthew Holt 2018-04-25 09:39:16 -06:00 committed by Alexander Neumann
parent acb05e7855
commit 930602a444

View File

@ -197,7 +197,7 @@ func statsWalkTree(ctx context.Context, repo restic.Repository, treeID restic.ID
stats.TotalFileCount++ stats.TotalFileCount++
} }
if _, ok := stats.fileBlobs[nodePath][blobID]; !ok { if _, ok := stats.fileBlobs[nodePath][blobID]; !ok {
// TODO: Is the blob type always 'data' in this case? // is always a data blob since we're accessing it via a file's Content array
blobSize, found := repo.LookupBlobSize(blobID, restic.DataBlob) blobSize, found := repo.LookupBlobSize(blobID, restic.DataBlob)
if !found { if !found {
return fmt.Errorf("blob %s not found for tree %s", blobID, treeID) return fmt.Errorf("blob %s not found for tree %s", blobID, treeID)