pkg/blobserver: Modify the definition of the BlobStreamer interface.

Code implementing this interface will use NewBlob(), which has been
modified to return a pointer to blob.Blob. So change the StreamBlobs
function in this interface to also send *.blob.Blob

Change-Id: Ia3b94c3f41f95cb31e96762d4c39b3172cc978f2
This commit is contained in:
Brian Gitonga Marete 2014-04-23 17:43:15 +03:00
parent bfd97aefb3
commit 21753c9350
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ type BlobStreamer interface {
// receive blobs from "the start". StreamBlobs must
// unconditionally close dest before returning, and it must
// return if ctx.Done() becomes readable.
StreamBlobs(ctx *context.Context, dest chan<- blob.Blob, contToken string, limitBytes int64) (nextContinueToken string, err error)
StreamBlobs(ctx *context.Context, dest chan<- *blob.Blob, contToken string, limitBytes int64) (nextContinueToken string, err error)
}
// Cache is the minimal interface expected of a blob cache.