From 21753c9350efe11e18c18ea62ca84a38d6264f0c Mon Sep 17 00:00:00 2001 From: Brian Gitonga Marete Date: Wed, 23 Apr 2014 17:43:15 +0300 Subject: [PATCH] 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 --- pkg/blobserver/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/blobserver/interface.go b/pkg/blobserver/interface.go index 045944043..48afd334a 100644 --- a/pkg/blobserver/interface.go +++ b/pkg/blobserver/interface.go @@ -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.