Merge pull request #2779 from greatroar/archiver-comment

Fix up comment on archiver.BlobSaver.Save
This commit is contained in:
MichaelEischer 2020-06-12 23:04:21 +02:00 committed by GitHub
commit 6896c6449b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -39,8 +39,7 @@ func NewBlobSaver(ctx context.Context, t *tomb.Tomb, repo Saver, workers uint) *
} }
// Save stores a blob in the repo. It checks the index and the known blobs // Save stores a blob in the repo. It checks the index and the known blobs
// before saving anything. The second return parameter is true if the blob was // before saving anything. It takes ownership of the buffer passed in.
// previously unknown.
func (s *BlobSaver) Save(ctx context.Context, t restic.BlobType, buf *Buffer) FutureBlob { func (s *BlobSaver) Save(ctx context.Context, t restic.BlobType, buf *Buffer) FutureBlob {
ch := make(chan saveBlobResponse, 1) ch := make(chan saveBlobResponse, 1)
select { select {