mirror of https://github.com/perkeep/perkeep.git
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:
parent
bfd97aefb3
commit
21753c9350
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue